<div dir="ltr">On Thu, Sep 26, 2013 at 6:16 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 class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I implemented most of them in r191429.<br>
<br>
I left out:<br>
<br>
* -fplugin-*: clang plugins are different from gcc. We should probably<br>
err on someone trying to pass us a gcc plugin.<br>
* -fbuiltin-*: I could not find an easy way to get the list that gcc supports.<br></blockquote><div><br></div><div>This can be done with a joined option:</div><div>def fbuiltin_ : Joined<["-"], "fbuiltin-">;</div>
<div>def fno_builtin_ : Joined<["-"], "fno-builtin-">;<br></div><div><br></div><div>Which Nick says is how we would actually implement it now that LLVM has TLI.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
* options that gcc itself errs on (like the -fwarn-incomplete-patterns)<br>
* options we already implemented (like -fasynchronous-unwind-tables)<br>
<br>
Were you grepping error logs?<br>
<div class=""><div class="h5"><br>
<br>
On 25 September 2013 22:07, Nick Lewycky <<a href="mailto:nlewycky@google.com">nlewycky@google.com</a>> wrote:<br>
> On 25 September 2013 18:53, Rafael Espíndola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>><br>
> wrote:<br>
>><br>
>> >> Err, we aren't ready for this. If we're going to do this, could you<br>
>> >> stage<br>
>> >> it such that the gcc flags are added but ignored, then we error on<br>
>> >> unknown<br>
>> >> options?<br>
>> ><br>
>> ><br>
>> > This is already how it works. If our list of ignored gcc -f flags isn't<br>
>> > complete enough, that's simple to fix.<br>
>><br>
>> I am happy to revert if needed, but as Eli pointed out adding ignored<br>
>> options is really easy. Do you have a list?<br>
><br>
><br>
> Using regex syntax:<br>
><br>
> -falign-functions.*<br>
> -fasynchronous-unwind-tables<br>
> -fbuiltin-.*<br>
> -fcallgraph-profiles-sections<br>
> -ffloat-store<br>
> -feliminate-unused-debug-types<br>
> -fgcse<br>
> -fident<br>
> -fivopts<br>
> -fnon-call-exceptions<br>
> -fpermissive<br>
> -fplugin-arg-.*<br>
> -fplugin=.*<br>
> -fprefetch-loop-arrays<br>
> -fprofile-correction<br>
> -fprofile-dir.*<br>
> -fprofile-use.*<br>
> -fprofile-values<br>
> -frounding-math<br>
> -fripa<br>
> -fsee<br>
> -ftracer<br>
> -ftree-.*<br>
> -funroll-all-loops<br>
> -fwarn-incomplete-patterns<br>
><br>
> and the -fno- versions of each of these. I may also be missing more, but<br>
> this is a start.<br>
><br>
> Nick<br>
><br>
<br>
</div></div><div class=""><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div></div>