This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc for syntax check only (C): need to read source from stdin
- From: Zack Weinberg <zack at codesourcery dot com>
- To: "Dave Korn" <dave dot korn at artimi dot com>
- Cc: "'Dimitry Golubovsky'" <golubovsky at gmail dot com>, "'Devang Patel'" <dpatel at apple dot com>, <gcc at gcc dot gnu dot org>, <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 12 Apr 2005 10:30:52 -0700
- Subject: Re: gcc for syntax check only (C): need to read source from stdin
- References: <SERRANOeMgxeT3y0MQf00000107@SERRANO.CAM.ARTIMI.COM>
"Dave Korn" <dave.korn@artimi.com> writes:
> Then the error message *really* ought to say
>
> gcc: -E or -x required when input is from standard input
>
> since it is thoroughly obtuse and non-explanatory as it stands. The
> attached is against 4.0 RC1, but I imagine it'll apply cleanly to HEAD with
> just a little fuzz, if people feel it's the right thing.
Yes, I think this is the right thing. Please test against mainline
and apply it there if successful. I don't think it is important
enough to put into 4.0.0, but you should put it on the 4.0 branch
after the release, and maybe the 3.4 branch as well.
zw