Patch to argument processing in main

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Thu Oct 14 16:38:00 GMT 1999


On Thu, 14 Oct 1999, Jason Merrill wrote:
> cases where it would be convenient to be able to compile code from
> multiple languages with the same set of flags (gcc -fwierd-stuff foo.C
> bar.java baz.f), so I think the error should just be backed out.
> 
> Thu Oct 14 13:54:25 1999  Jason Merrill  <jason@yorick.cygnus.com>
> 
> 	* toplev.c (main): Don't complain about options for other languages.

I agree that issuing an error in such cases is causing troubles, but why
go from one extreme to the other?

I do believe we should not bail out nor simply ignore unsupported options,
but *warn* users in such cases.

In some cases, such as the one you mentioned, these are false positives.
On the other hand, due to bugs in the GCC documentation, here at DBAI we
had used some options for our C++ projects which turned out just two weeks
ago to be C-only options.

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/





More information about the Gcc-patches mailing list