https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122835

--- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Guess a GCC plugin could be used for the warning as well, simply register a
pass right after the eh pass and walk the IL (note, at that point there can be
substatements which need to be walked too, but walk_gimple_seq should do) and
for GIMPLE_ASM stmts check if they have non-zero gimple_asm_nlabels and if any
of the LABEL_DECLs in there is DECL_ARTIFICIAL, then warn.

Reply via email to