preprocessor/4178: ICE with -imacros
Gert-jan Los
gjlos@rz.uni-mannheim.de
Thu Aug 30 05:16:00 GMT 2001
>Number: 4178
>Category: preprocessor
>Synopsis: ICE with -imacros switch even on trivial input
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu Aug 30 05:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Gert-jan Los
>Release: 3.1 20010829 (experimental)
>Organization:
UniversitÃÂät Mannheim
>Environment:
System: Linux snoopy 2.2.19 #1 Thu May 31 15:16:55 CEST 2001 sparc unknown
Architecture: sparc
host: sparc-unknown-linux-gnu
build: sparc-unknown-linux-gnu
target: sparc-unknown-linux-gnu
configured with: /users/los/admin/software/gcc/snapshot/configure --prefix=/opt/devel --with-as=/opt/devel/bin/as --with-ld=/opt/devel/bin/ld --disable-threads --disable-nls --enable-languages=c,c++ --enable-long-long
>Description:
GCC dies with an ICE even on trivial input if the -imacros switch is
used.
I suspect an oversight in the recent line mapping changes, because of
the negative line number in the error message.
>How-To-Repeat:
echo >defs
touch empty.c
echo >onebyte.c
gcc -imacros defs -c onebyte.c
| onebyte.c:-29: Internal error: Segmentation fault
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
gcc -imacros defs -c empty.c
| Errors detected in input file (your bison.simple is out of date)
>Fix:
Workaround: Use -include instead of -imacros
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-prs
mailing list