From mboxrd@z Thu Jan 1 00:00:00 1970 From: philb@gnu.org To: gcc-gnats@gcc.gnu.org Subject: target/2878: ARM: cannot use 3.0 to build stage 1 of bootstrap; bad code generated at -O0? Date: Sun, 20 May 2001 03:36:00 -0000 Message-id: <20010520103345.24997.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00507.html List-Id: >Number: 2878 >Category: target >Synopsis: ARM: cannot use 3.0 to build stage 1 of bootstrap; bad code generated at -O0? >Confidential: no >Severity: serious >Priority: high >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun May 20 03:36:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: philb@gnu.org >Release: unknown-1.0 >Organization: >Environment: >Description: Bootstrapping the 3.0 branch on arm-linux, using a compiler previously built from the same sources to build stage 1, eventually fails here: ./xgcc -B./ -B/usr/local/armv4l-unknown-linux-gnu/bin/ -isystem /usr/local/armv4l-unknown-linux-gnu/include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fomit-frame-pointer -fPIC -g0 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/home/pb/egcs/3.0/gcc/gcc -I/home/pb/egcs/3.0/gcc/gcc/. -I/home/pb/egcs/3.0/gcc/gcc/config -I/home/pb/egcs/3.0/gcc/gcc/../include -DL_bb -c /home/pb/egcs/3.0/gcc/gcc/libgcc2.c -o libgcc/./_bb.o In file included from /home/pb/egcs/3.0/gcc/gcc/libgcc2.c:1298: /home/pb/egcs/3.0/gcc/gcc/gcov-io.h: In function `__store_long': /home/pb/egcs/3.0/gcc/gcc/gcov-io.h:67: Internal compiler error in canon_hash, at cse.c:2463 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[3]: *** [libgcc/./_bb.o] Error 1 Since it works to use GCC 2.95 for building stage 1, it seems likely that GCC 3.0 is miscompiling itself at -O0. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: