<div dir="ltr">What about -munknown-to-clang-option? We really want an error on those ones, since they can change the ABI.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 3, 2013 at 4:35 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="h5">On Tue, Sep 3, 2013 at 9:31 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
</div></div><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The attached patch fixes pr9701. It was marked wontfix, but I could<br>
not find why.<br>
<br>
Requiring -Werror=unknown-warning-option is a fairly annoying behavior<br>
difference from gcc.<br>
<br>
Before this patch:<br>
<br>
$ clang -HHH -c test.c; echo $?<br>
clang: warning: argument unused during compilation: '-HHH'<br>
0<br>
<br>
with this patch:<br>
<br>
$ clang -HHH -c test.c; echo $?<br>
clang-3.4: error: unknown argument: '-HHH'<br>
1<br><br></blockquote></div></div><div>Does this affect -funknown-to-clang-option?  -Wunknown-to-clang-option?  Any other potentially interesting cases?  The testcase is a bit lacking.</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>-Eli</div></font></span></div></div>
</div>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>