buildsi / build-abi-tests

0 stars 0 forks source link

default parameters #10

Open woodard opened 2 years ago

woodard commented 2 years ago

When a function takes a default parameter if the value of that default parameter changes in a header file. The old default is hard coded at the call site of the function and there does not appear to be a way to detect that this particular call site took a different default than was expected by the current version of the library.

woodard commented 2 years ago

I was thinking that a call site may have a parameter for a function decorated with DW_AT_artificial in the DW_TAG_call_site_parameter DIE but it doesn't look like gcc currently emits this. However, it does appear that the language in DWARF5 section 2.11 doesn't preclude that if interpreted expansively enough.