[patch] Fix pr9701
Richard Smith
richard at metafoo.co.uk
Tue Sep 3 18:11:02 PDT 2013
What about -munknown-to-clang-option? We really want an error on those
ones, since they can change the ABI.
On Tue, Sep 3, 2013 at 4:35 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Tue, Sep 3, 2013 at 9:31 AM, Rafael EspĂndola <
> rafael.espindola at gmail.com> wrote:
>
>> The attached patch fixes pr9701. It was marked wontfix, but I could
>> not find why.
>>
>> Requiring -Werror=unknown-warning-option is a fairly annoying behavior
>> difference from gcc.
>>
>> Before this patch:
>>
>> $ clang -HHH -c test.c; echo $?
>> clang: warning: argument unused during compilation: '-HHH'
>> 0
>>
>> with this patch:
>>
>> $ clang -HHH -c test.c; echo $?
>> clang-3.4: error: unknown argument: '-HHH'
>> 1
>>
>> Does this affect -funknown-to-clang-option? -Wunknown-to-clang-option?
> Any other potentially interesting cases? The testcase is a bit lacking.
>
> -Eli
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130903/4624e377/attachment.html>
More information about the cfe-commits
mailing list