gcc detect multiple -o passed on one command line

Ian Lance Taylor iant@google.com
Thu May 5 21:53:00 GMT 2011


Jon Grant <jg@jguk.org> writes:

> Is it expected that more than one -o option should be allowed by GCC
> on command line? The later -o option overriding earlier.

Yes, this is expected.  Most Unix utilities behave that way: when an
option with an argument is specified twice, and it only makes sense to
specify it once, then the option argument which comes last is used.

Ian



More information about the Gcc mailing list