cp /dev/null empty.c; gcc -c empty.c gives bogus error status

Mike Coleman mcoleman2@kc.rr.com
Fri Oct 13 03:16:00 GMT 2000


This

	cp /dev/null empty.c
	gcc -c empty.c -o empty || echo bogus

will output 'bogus', which is wrong (or breaks the build of glibc anyway).  It
looks like the preprocessor is being invoked, but not cc1.

This is for a gcc built out of cvs approximately Sep 29 (20000929).  I tried
to check whether this might be fixed in the current head, but it won't compile
for me.

--Mike


More information about the Gcc-bugs mailing list