http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57208
--- Comment #11 from Jan Hubicka <hubicka at gcc dot gnu.org> --- OK, self contained way to reproduce the bug: evans:/tmp/:[1]# cat t.c #include <stdio.h> main() { int i; printf ("int main(){}\n"); for (i=0;i<70000;i++) printf ("__attribute__ ((used, externally_visible)) int ttiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii%i(){}\n", i); } evans:/tmp/:[1]# gcc t.c evans:/tmp/:[1]# ./a.out >tt.c evans:/tmp/:[1]# /abuild/jh/trunk-install/bin/gcc -O2 -flto tt.c --param lto-partitions=1 takes a while. I am testing the patch.