https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68662
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 37475 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37475&action=edit gcc6-pr68662.patch So what about this untested patch? ASM_GENERATE_INTERNAL_LABEL doesn't look to be too expensive to do unconditionally once, and for GC sanity it needs to go through ggc_strdup anyway (it is invalid to refer to non-GC allocated strings in GTY const char * fields that are not skipped by GC).