public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gnu-win32 gcc compiler error
@ 1997-09-08 14:23 David J. Slate
  0 siblings, 0 replies; only message in thread
From: David J. Slate @ 1997-09-08 14:23 UTC (permalink / raw)
  To: dslate, gnu-win32

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".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-09-08 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-08 14:23 gnu-win32 gcc compiler error David J. Slate

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).