------- Comment #6 from rguenth at gcc dot gnu dot org 2010-07-01 11:40 ------- On trunk with the original testcase we fail with
/abuild/rguenther/trunk-g/gcc> ./xgcc -B. -r -nostdlib -O -march=pentium4 -flto -fuse-linker-plugin sid.ii wave.ii -m32 -B ../lto-plugin/.libs lto1: out of memory allocating 8589934596 bytes after a total of 520192 bytes lto-wrapper: ./xgcc returned 1 exit status /usr/bin/gold: fatal error: lto-wrapper failed collect2: ld returned 1 exit status #4 0x00000000007bd6e1 in input_cgraph_1 (file_data=0x7ffff7ee2300, ib=0x166a340) at /space/rguenther/src/svn/trunk/gcc/lto-cgraph.c:1257 1257 char *str = (char *)xmalloc (len + 1); (gdb) l 1252 1253 /* Input toplevel asms. */ 1254 len = lto_input_uleb128 (ib); 1255 while (len) 1256 { 1257 char *str = (char *)xmalloc (len + 1); 1258 for (i = 0; i < len; ++i) 1259 str[i] = lto_input_1_unsigned (ib); 1260 cgraph_add_asm_node (build_string (len, str)); 1261 free (str); (gdb) p len $1 = 8589934595 so somehow the output cgraph is corrupt. Works fine without using the linker-plugin on trunk, too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44724