sh64-elf fails to build with gcc 4.1

Joern RENNECKE joern.rennecke@st.com
Fri Jan 27 18:36:00 GMT 2006


The newlib build fails with:

/mnt/scratch/nightly/4.1-2006-01-27/sh64-elf/./gcc/xgcc 
-B/mnt/scratch/nightly/4.1-2006-01-27/sh64-elf/./gcc/ -nostdinc 
-B/mnt/scratch/nightly/4.1-2006-01-27/sh64-elf/sh64-elf/compact/newlib/ 
-isystem 
/mnt/scratch/nightly/4.1-2006-01-27/sh64-elf/sh64-elf/compact/newlib/targ-include 
-isystem /mnt/scratch/nightly/4.1-2006-01-27/srcw/newlib/libc/include 
-B/usr/local/sh64-elf/bin/ -B/usr/local/sh64-elf/lib/ -isystem 
/usr/local/sh64-elf/include -isystem /usr/local/sh64-elf/sys-include 
-L/mnt/scratch/nightly/4.1-2006-01-27/sh64-elf/./ld -m5-compact 
-DPACKAGE=\"newlib\" -DVERSION=\"1.14.0\" -I. 
-I../../../../../../srcw/newlib/libc/stdlib -O2 -DHAVE_GETTIMEOFDAY 
-fno-builtin -O2 -g -O2 -m5-compact -DINTERNAL_NEWLIB -DDEFINE_REALLOC 
-c ../../../../../../srcw/newlib/libc/stdlib/mallocr.c -o reallocr.o
../../../../../../srcw/newlib/libc/stdlib/mallocr.c: In function 
‘_realloc_r’:
../../../../../../srcw/newlib/libc/stdlib/mallocr.c:2994: internal 
compiler error: in insert_save, at caller-save.c:719
Please submit a full bug report,
with preprocessed source if appropriate.

This appears to be the same failure as observed on mainline on November.
The patch that fixed this was:

2005-11-24 J"orn Rennecke <joern.rennecke@st.com>

* caller-save.c: (this_insn_sets): Move into:
(save_call_clobbered_regs).
(mark_set_regs): Get this_insn_sets from data.

(save_call_clobbered_regs): Take sets of the return value by
sibcalls into account.

http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107469

OK to backport to 4.1 if bootstrap on i686-pc-linux-gnu succeeds?




More information about the Gcc mailing list