This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57208] Latest chromium compilation fails with enabled LTO
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Jun 2013 18:24:09 +0000
- Subject: [Bug c++/57208] Latest chromium compilation fails with enabled LTO
- Auto-submitted: auto-generated
- References: <bug-57208-4 at http dot gcc dot gnu dot org/bugzilla/>
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.