This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/15937] New: miscompiles gengtype of HEAD as bootstrap compiler
- From: "rguenth at tat dot physik dot uni-tuebingen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2004 11:14:15 -0000
- Subject: [Bug rtl-optimization/15937] New: miscompiles gengtype of HEAD as bootstrap compiler
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
3.3.4 miscompiles gengtype if used as host compiler during bootstrap:
gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I.
-I../../src/gcc-3.5/gcc -I../../src/gcc-3.5/gcc/.
-I../../src/gcc-3.5/gcc/../include -I../../src/gcc-3.5/gcc/../libcpp/include
-I../../src/gcc-3.5/gcc/../libbanshee/libcompat
-I../../src/gcc-3.5/gcc/../libbanshee
-I../../src/gcc-3.5/gcc/../libbanshee/points-to
../../src/gcc-3.5/gcc/gengtype.c -o gengtype.o
flex -ogengtype-lex.c ../../src/gcc-3.5/gcc/gengtype-lex.l
bison -d -o gengtype-yacc.c ../../src/gcc-3.5/gcc/gengtype-yacc.y
gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I.
-I../../src/gcc-3.5/gcc -I../../src/gcc-3.5/gcc/.
-I../../src/gcc-3.5/gcc/../include -I../../src/gcc-3.5/gcc/../libcpp/include
-I../../src/gcc-3.5/gcc/../libbanshee/libcompat
-I../../src/gcc-3.5/gcc/../libbanshee
-I../../src/gcc-3.5/gcc/../libbanshee/points-to \
gengtype-lex.c -o gengtype-lex.o
gengtype-lex.c:3245: warning: no previous prototype for `yyget_lineno'
gengtype-lex.c:3254: warning: no previous prototype for `yyget_in'
gengtype-lex.c:3262: warning: no previous prototype for `yyget_out'
gengtype-lex.c:3270: warning: no previous prototype for `yyget_leng'
gengtype-lex.c:3279: warning: no previous prototype for `yyget_text'
gengtype-lex.c:3288: warning: no previous prototype for `yyset_lineno'
gengtype-lex.c:3300: warning: no previous prototype for `yyset_in'
gengtype-lex.c:3305: warning: no previous prototype for `yyset_out'
gengtype-lex.c:3310: warning: no previous prototype for `yyget_debug'
gengtype-lex.c:3315: warning: no previous prototype for `yyset_debug'
gengtype-lex.c:3321: warning: no previous prototype for `yylex_destroy'
gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I.
-I../../src/gcc-3.5/gcc -I../../src/gcc-3.5/gcc/.
-I../../src/gcc-3.5/gcc/../include -I../../src/gcc-3.5/gcc/../libcpp/include
-I../../src/gcc-3.5/gcc/../libbanshee/libcompat
-I../../src/gcc-3.5/gcc/../libbanshee
-I../../src/gcc-3.5/gcc/../libbanshee/points-to \
gengtype-yacc.c -o gengtype-yacc.o
gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengtype \
gengtype.o gengtype-lex.o gengtype-yacc.o ../libiberty/libiberty.a
./gengtype
../../src/gcc-3.5/gcc/rtl.h:265: duplicate structure definition
../../src/gcc-3.5/gcc/rtl.h:265: previous definition here
../../src/gcc-3.5/gcc/rtl.h:265: duplicate structure definition
../../src/gcc-3.5/gcc/rtl.h:265: previous definition here
../../src/gcc-3.5/gcc/rtl.h:265: duplicate structure definition
../../src/gcc-3.5/gcc/rtl.h:265: previous definition here
../../src/gcc-3.5/gcc/rtl.h:265: duplicate structure definition
../../src/gcc-3.5/gcc/rtl.h:265: previous definition here
../../src/gcc-3.5/gcc/rtl.h:265: duplicate structure definition
../../src/gcc-3.5/gcc/rtl.h:265: previous definition here
../../src/gcc-3.5/gcc/rtl.h:265: duplicate structure definition
../../src/gcc-3.5/gcc/rtl.h:265: previous definition here
../../src/gcc-3.5/gcc/rtl.h:265: duplicate structure definition
../../src/gcc-3.5/gcc/rtl.h:265: previous definition here
../../src/gcc-3.5/gcc/rtl.h:265: duplicate structure definition
../../src/gcc-3.5/gcc/rtl.h:265: previous definition here
make[2]: *** [s-gtype] Segmentation fault
make[2]: Leaving directory `/net/natasa/scratch/natasa/rguenth/gcc-obj-3.5/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/net/natasa/scratch/natasa/rguenth/gcc-obj-3.5/gcc'
make: *** [bootstrap] Error 2
using 3.4.0 as host compiler makes it past this point. This is the debian
version of the 3.3.4 release:
natasa:rguenth> gcc --version
gcc (GCC) 3.3.4 (Debian)
natasa:rguenth> dpkg -l gcc-3.3
ii gcc-3.3 3.3.4-1 The GNU C compiler
--
Summary: miscompiles gengtype of HEAD as bootstrap compiler
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at tat dot physik dot uni-tuebingen dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: ia64-unknown-linux-gnu
GCC host triplet: ia64-unknown-linux-gnu
GCC target triplet: ia64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15937