This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

gnu-win32 gcc compiler error


Subject: gnu-win32 gcc compiler error
Reply-To: dslate@interaccess.com
To: gnu-win32@cygnus.com

I am using the gnu-win32 package under both Windows-95 and Windows-NT, and
so far it is working pretty well, but one strange (but perhaps harmless)
quirk is that gcc seems to get an internal compiler when it detects syntax
errors.  For example, the following script:

	#!/bin/sh -x
	# Demonstrate gcc abort on syntax errors under gnu-win32.

	date
	uname -a
	echo
	cat gccabt.c
	echo
	gcc gccabt.c
	date

produces on stdout:

	Mon Sep  8 08:32:10 GMT-6:00 1997
	CYGWIN32/95 DEFAULT 4.0 17.5 i6366486

	int
	main( int argc, char *argv[])
	{
		blah
	}

	Mon Sep  8 08:32:11 GMT-6:00 1997

and on stderr:

	+ date
	+ uname -a
	+ echo
	+ cat gccabt.c
	+ echo
	+ gcc gccabt.c
	gccabt.c: In function `main':
	gccabt.c:5: `blah' undeclared (first use this function)
	gccabt.c:5: (Each undeclared identifier is reported only once
	gccabt.c:5: for each function it appears in.)
	gccabt.c:5: syntax error before `}'
	gcc: Internal compiler error: program cc1 got fatal signal 33
	+ date

Does anyone have any ideas on what is causing this?

Thanks,

-- Dave Slate
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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