Inconsistency between -Xassembler and -Wa option

Ian Lance Taylor iant@google.com
Mon Apr 30 23:14:00 GMT 2012


Mohamed Shafi <shafitvm@gmail.com> writes:

> I have a question about the -Xassembler option. I was testing and ran
> across some inconsistency between the -Xassembler option and the -Wa
> option. I was wondering if I am using an option incorrectly or if
> there is indeed something wrong.
>
> I call gcc on a .s file and I pass -v option to get the version of the
> assembler...
>
> 1st time, call gcc -Xassembler -v file ....expect assembler version
> 2nd time, call gcc -Wa,-v file ....expect assembler version
> 3rd time, call gcc -v file ....expect compiler commands and version
>
> The results show that 1st and 3rd results are nearly the same, while
> 2nd result gives me just the assembler version. It seems like
> -Xassembler is not just restricted to assembler options.
>
> Is this expected ?

I think this is a bug that was fixed in the GCC 4.6 release.

Ian



More information about the Gcc-help mailing list