[Bug bootstrap/17835] New: stage2 compiler is broken because it is built with -fomit-frame-pointer
rschiele at uni-mannheim dot de
gcc-bugzilla@gcc.gnu.org
Tue Oct 5 07:28:00 GMT 2004
When configuring a compiler for i586-linux, bootstrapping fails at:
./xgcc -B./ -B/usr/local/i586-linux/bin/ -isystem /usr/local/i586-linux/include
-isystem /usr/local/i586-linux/sys-include -L/home/robert/gcc/build/gcc/../ld
-O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -DL_gcov_execl -c ../../gcc/gcc/libgcov.c -o
libgcc/./_gcov_execl.o
../../gcc/gcc/libgcov.c: In function '__gcov_execl':
../../gcc/gcc/libgcov.c:613: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
in stage2.
I found that this happens when stage2 compiler is built with
-fomit-frame-pointer, as it is default for this configuration
(config/mh-x86omitfp). When this option is removed, bootstrapping is fine.
It seems that -fomit-frame-pointer does produce wrong-code when building stage2
compiler and thus stage2 compiler is broken.
Note that this does neither happen for i486-linux, nor for i686-linux, only for
i586-linux. Because of that it is essential to specify i586 explicitly when
trying to reproduce.
--
Summary: stage2 compiler is broken because it is built with -
fomit-frame-pointer
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rschiele at uni-mannheim dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i586-pc-linux-gnu
GCC host triplet: i586-pc-linux-gnu
GCC target triplet: i586-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17835
More information about the Gcc-bugs
mailing list