This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Gcc 3.0.1 fails to build for Sequent 4.5.1
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Subject: Gcc 3.0.1 fails to build for Sequent 4.5.1
- From: "Dana, Eric" <Eric_Dana at bmc dot com>
- Date: Tue, 25 Sep 2001 16:39:23 -0500
Configuration:
sequent 4.5.1
Gcc 3.0.1
Gnu Make 3.79.1
Binutils 2.11.2
Configured with:
--host=i386-sequent-sysv4
--prefix=/bmc/test
--srcdir=/depot/gnu/gcc-3.0.1
--exec-prefix=/bmc/test
--with-local-prefix=/bmc/test
--with-gnu-as
--with-gnu-ld
I've needed to fix the 'ptx4*' entry in config.gcc to properly
construct tm_file. After this was done, I get the following
error:
cc -DIN_LIBGCC1 -O -I. -I. -I/depot/gnu/gcc-3.0.1/gcc \
-I/depot/gnu/gcc-3.0.1/gcc/. \
-I/depot/gnu/gcc-3.0.1/gcc/config \
-I/depot/gnu/gcc-3.0.1/gcc/../include \
-DL_mulsi3 -c /depot/gnu/gcc-3.0.1/gcc/libgcc1.c \
-o libgcc/_mulsi3.o
"/depot/gnu/gcc-3.0.1/gcc/machmode.h", line 124: syntax error, probably
missing ",", ";" or "="
"/depot/gnu/gcc-3.0.1/gcc/machmode.h", line 124: syntax error before or at:
PARAMS
"/depot/gnu/gcc-3.0.1/gcc/machmode.h", line 125: warning: syntax error:
empty declaration
"/depot/gnu/gcc-3.0.1/gcc/machmode.h", line 130: syntax error, probably
missing ",", ";" or "="
"/depot/gnu/gcc-3.0.1/gcc/machmode.h", line 130: cannot recover from
previous errors
It seems that the 'PARAMS' macro is not being defined. IN_GCC is
NOT defined, so 'ansidecl.h' is not being included from 'config.h'.
This problem did not exist in 2.95.2. It may have been introduced
when the following snippet was added to gencode.c:
puts ("struct rtx_def;\n#include \"machmode.h\"\n");
gencode.c writes 'insn-codes.h' which is included via 'config.h'
The include file 'machmode.h' has PARAMS references in it.
The question is what is the best way to address this?
1.) Have machmode.h include 'ansidecl.h'.
2.) Define IN_GCC when building libgcc1.c (not sure what the impact
would be.
3.) Any other ideas are welcome.
--Eric Dana--
BMC Software Inc.