[Bug other/102362] 'dump_printf_loc' doesn't work from 'gate' method of a 'gimple_opt_pass'

2021-09-16 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102362 --- Comment #2 from Thomas Schwinge --- 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 t

[Bug other/102362] 'dump_printf_loc' doesn't work from 'gate' method of a 'gimple_opt_pass'

2021-09-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102362 --- Comment #1 from Richard Biener --- Why would you call such method from the gate()?