This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [new-regalloc-branch] bootstrap failure on SPARC
Daniel Berlin <dan@cgsoftware.com> writes:
> Dan Nicolaescu <dann@godzilla.ICS.UCI.EDU> writes:
>
> > On sparc-sun-solaris2.8
> >
> > configured with:
> >
> > configure --disable-nls --disable-multilib --enable-languages=c
> >
> > I get:
> >
> > stage1/xgcc -Bstage1/ -B/home/dann/gcc-newRA/sparc-sun-solaris2.8/bin/ -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc-CVS/gcc -I../../gcc-CVS/gcc/. -I../../gcc-CVS/gcc/config -I../../gcc-CVS/gcc/../include ../../gcc-CVS/gcc/cpplex.c -o cpplex.o
> > ../../gcc-CVS/gcc/cpplex.c: In function `cpp_parse_escape':
> > ../../gcc-CVS/gcc/cpplex.c:1883: Internal compiler error in subreg_hard_regno, at emit-rtl.c:713
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> >
> > about 20 or so other files fail at this stage with the same ICE in subreg_hard_regno, at emit-rtl.c:713
> > all other files are compiled without an error.
> Whee.
> This is because denis removed a supposedly incorrect test in
> get_free_reg.
> I don't think it was really incorrect.
> Reverting his patch makes these failures go away.
> Denis, what exactly about the get_free_reg test was incorrect?
[Did you intend to Cc: Denis on this message? He is not in the Cc:
list... ]
After reverting that change there's a different it crashes earlier:
./xgcc -B./ -B/home/dann/gcc-newRA/sparc-sun-solaris2.8/bin/ -isystem /home/dann/gcc-newRA/sparc-sun-solaris2.8/include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-CVS/gcc -I../../gcc-CVS/gcc/. -I../../gcc-CVS/gcc/config -I../../gcc-CVS/gcc/../include -DL_muldi3 -c ../../gcc-CVS/gcc/libgcc2.c -o libgcc/./_muldi3.o
cc1: warning: changing search order for system directory "include"
cc1: warning: as it has already been specified as a system directory
../../gcc-CVS/gcc/libgcc2.c: In function `__muldi3':
../../gcc-CVS/gcc/libgcc2.c:367: Unrecognizable insn:
(insn 3172 1609 3175 (set (mem:SI (plus:SI (reg/f:SI 30 %fp)
(const_int -4100 [0xffffffffffffeffc])) 0)
(subreg:SI (reg/v:DI 111) 4)) -1 (nil)
(nil))
../../gcc-CVS/gcc/libgcc2.c:367: Internal compiler error in extract_insn, at recog.c:2127
--dan