[Bug other/102362] 'dump_printf_loc' doesn't work from 'gate' method of a 'gimple_opt_pass'
tschwinge at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 16 11:26:29 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102362
--- Comment #2 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Here, to emit 'note: [...]' ('-fopt-info-note') if because of certain input
source code characteristics (derived from
'DECL_ATTRIBUTES(current_function_decl)'), certain code transformations
do/don't need to be done. Primarily for GCC test suite usage (matching
'dg-note' for the relevant lines), but may also be useful for users. (I can of
course move the detection of "certain input source code characteristics" and
'dump_printf_loc' into 'execute', but it was surprising that I couldn't do it
in 'gate'.)
More information about the Gcc-bugs
mailing list