This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

preprocessor/4178: ICE with -imacros



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]