rengolin added a comment.

In http://reviews.llvm.org/D11148#209873, @rnk wrote:

> Sorry for ignoring this. I looked at it, didn't like the approach, but 
> couldn't think of a better one.


Welcome to my world... This is not my first attempt... :)

> Here's a dumb idea: what if we alias -Wa,-mcpu= to -mcpu=? This would have 
> the unintended side effect of making -Wa,-mcpu affect the CPU used for 
> *compilation* in addition to assembly, but that seems like not a very big 
> deal. If that's OK, it solves the whole getLastArg problem without 
> complicating the driver C++ code.


It would, but the behaviour that makes most sense if for the -Wa to override 
the naked options for the assembler, and never be used for the compiler. If we 
merge them, -Wa options will work for compilation, too, and won't override 
naked options when it should.


http://reviews.llvm.org/D11148




_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to