<div dir="ltr">On 26 September 2013 06:16, 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:0 0 0 .8ex;border-left:1px #ccc 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>
* 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></blockquote><div><br></div><div>It's derived from our wrapper program which munges gcc flags into clang flags. That in turn gets things added to it when we see errors.</div><div><br>

</div><div>Sorry, I did a pass over the list to remove flags that only exist in the google branch of gcc and flags which clang doesn't error on, but evidently I missed a couple.</div><div><br></div><div>Nick</div><div>

<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div></div>