Inconsistency between -Xassembler and -Wa option
Mohamed Shafi
shafitvm@gmail.com
Mon Apr 30 09:32:00 GMT 2012
Hi,
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 ?
Shafi
More information about the Gcc-help
mailing list