[tree-ssa] ICE while compiling tree-ssa with another tree-ssa in fortran/match.c
Melvin Hadasht
melvin.hadasht@free.fr
Sun Nov 16 06:25:00 GMT 2003
Hi,
I've successfully boostrapped tree-ssa few days ago:
/usr/local/gcc-ssa/bin/gcc -v
Reading specs from /usr/local/gcc-ssa/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/specs
Configured with: /usr/local/src/cvs/gcc/configure --enable-languages=c,f95 --prefix=/usr/local/gcc-ssa
Thread model: posix
gcc version 3.5-tree-ssa 20031113 (merged 20031111)
(CPU is PII266, kernel linux-2.6.0-test9-mm3, glibc 2.3.2)
I attempted to use it to compile current tree-ssa CVS (2003-11-15, 14:45 UTC),
by configuring with:
CC=/usr/local/gcc-ssa/bin/gcc /usr/local/src/cvs/gcc/configure --enable-languages=c,f95,c++,objc --prefix=/usr/local/gcc-ssa
and using make:
make CPPFLAGS="-I/usr/local/include" CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates'
I get the ICE while compiling fortran/match.c (CVS version 1.1.2.3):
------- BEGIN gcc command line + output ----
/usr/local/gcc-ssa/bin/gcc -v -save-temps -c -O -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common -DHAVE_CONFIG_H -I/usr/local/include -I. -Ifortran -I/usr/local/src/cvs/gcc/gcc -I/usr/local/src/cvs/gcc/gcc/fortran -I/usr/local/src/cvs/gcc/gcc/../include -I/usr/local/src/cvs/gcc/gcc/../libbanshee/libcompat -I/usr/local/src/cvs/gcc/gcc/../libbanshee -I/usr/local/src/cvs/gcc/gcc/../libbanshee/points-to /usr/local/src/cvs/gcc/gcc/fortran/match.c -o fortran/match.o
Reading specs from /usr/local/gcc-ssa/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/specs
Configured with: /usr/local/src/cvs/gcc/configure --enable-languages=c,f95 --prefix=/usr/local/gcc-ssa
Thread model: posix
gcc version 3.5-tree-ssa 20031113 (merged 20031111)
/usr/local/gcc-ssa/bin/../libexec/gcc/i686-pc-linux-gnu/3.5-tree-ssa/cc1 -E -quiet -v -I/usr/local/include -I. -Ifortran -I/usr/local/src/cvs/gcc/gcc -I/usr/local/src/cvs/gcc/gcc/fortran -I/usr/local/src/cvs/gcc/gcc/../include -I/usr/local/src/cvs/gcc/gcc/../libbanshee/libcompat -I/usr/local/src/cvs/gcc/gcc/../libbanshee -I/usr/local/src/cvs/gcc/gcc/../libbanshee/points-to -iprefix /usr/local/gcc-ssa/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/ -DIN_GCC -DHAVE_CONFIG_H /usr/local/src/cvs/gcc/gcc/fortran/match.c -mtune=pentiumpro -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common -O -o match.i
ignoring nonexistent directory "/usr/local/gcc-ssa/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory "/usr/local/gcc-ssa/lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/include"
ignoring nonexistent directory "/usr/local/gcc-ssa/lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory "/usr/local/include"
as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
.
fortran
/usr/local/src/cvs/gcc/gcc
/usr/local/src/cvs/gcc/gcc/fortran
/usr/local/src/cvs/gcc/gcc/../include
/usr/local/src/cvs/gcc/gcc/../libbanshee/libcompat
/usr/local/src/cvs/gcc/gcc/../libbanshee
/usr/local/src/cvs/gcc/gcc/../libbanshee/points-to
/usr/local/gcc-ssa/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/include
/usr/local/include
/usr/local/gcc-ssa/include
/usr/include
End of search list.
/usr/local/gcc-ssa/bin/../libexec/gcc/i686-pc-linux-gnu/3.5-tree-ssa/cc1 -fpreprocessed match.i -quiet -dumpbase match.c -mtune=pentiumpro -auxbase-strip fortran/match.o -O -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -version -fno-common -o match.s
GNU C version 3.5-tree-ssa 20031113 (merged 20031111) (i686-pc-linux-gnu)
compiled by GNU C version 3.5-tree-ssa 20031113 (merged 20031111).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
/usr/local/src/cvs/gcc/gcc/fortran/match.c: In function `gfc_match':
/usr/local/src/cvs/gcc/gcc/fortran/match.c:616: internal compiler error: tree check: accessed operand 2 of va_arg_expr with 1 operands in load_modified_real_occ_real_occ, at tree-ssa-pre.c:1353
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
------- END gcc command line + output ----
match.i is 45kb gzipped, so you can find it here:
http://melvin.hadasht.free.fr/match.i.gz
I tried to compile the same file with -O2 instead of -O, and it
compiled with no errors. There are no differences in the match.i.
I could not find something related to load_modified... or
va_arg_expr in tree-ssa bugzilla. It is the first time I compile
tree-ssa with tree-ssa.
Is this a known bug? Do you need more info?
I'll continue the compilation with the match.o compiled
with -O2 and see what happens.
--
Melvin Hadasht
More information about the Gcc
mailing list