rfc and [patch]: Unify -mfpu and .fpu handling, let .fpu toggle features

Nico Weber thakis at chromium.org
Thu Aug 14 17:40:23 PDT 2014


>
> Does the driver need to process the  -mfpu just to pass the results to
>> -cc1 or is the information needed for something like deciding which
>> libraries to link with? If just -cc1, maybe we could just pass down the raw
>> option?
>>
>
> It's possible, but translating flags into -target-option flags in the
> driver is pretty pervasive in the driver (63 "Features.push_back" calls in
> lib/Driver/Tools.cpp). So that'd be fairly different from the current code,
> and I'm not sure if Frontend depending on ARMCodeGen is much better than
> Driver depending on it?
>
> Yes, I agree, they are both equally odd.
>
> What is the size impact in libclang? It links with lib/Driver, no?
>

>From what I can tell looking at tools/clang/tools/libclang/CMakeLists.txt,
it doesn't.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140814/6e97b433/attachment.html>


More information about the cfe-commits mailing list