Subject: gnu-win32 gcc compiler error
From: [email-masked] ("David J. Slate")

8 Sep 1997 20:26:46 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Original-To: [email-masked], [email-masked]
Original-Sender: [email-masked]

Subject: gnu-win32 gcc compiler error
Reply-To: [email-masked]
To: [email-masked]

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
"[email-masked]" with one line of text: "help".