https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70594
--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> --- For the testcases in this PR probably: --- gcc/tree-sra.c 2016-04-09 13:21:06.111510703 +0200 +++ gcc/tree-sra.c 2016-04-11 23:11:41.253126047 +0200 @@ -1537,17 +1537,12 @@ compare_access_positions (const void *a, static void make_fancy_decl_name (tree decl) { - char buffer[32]; - tree name = DECL_NAME (decl); if (name) obstack_grow (&name_obstack, IDENTIFIER_POINTER (name), IDENTIFIER_LENGTH (name)); else - { - sprintf (buffer, "D%u", DECL_UID (decl)); - obstack_grow (&name_obstack, buffer, strlen (buffer)); - } + obstack_grow (&name_obstack, "Dxxxx", 5); } /* Helper for make_fancy_name. */ or something similar would be enough (or do that only for flag_dump_final_insns != NULL?). But the #c0 report suggests this affects more than that, but only Tobias has the reproducer that.