On 05/05/2011 11:53 PM, Ian Lance Taylor wrote: > Jon Grant <j...@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.
Huh. If you add -E to the command line you get cc1: error: output filename specified twice so we're a little inconsistent here. Bernd