<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54625>54625</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang warning passing "-ffast-math -fno-fast-math"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
efriedma-quic
</td>
</tr>
</table>
<pre>
```
$ bin/clang -c x.c -ffast-math -fno-fast-math
clang-13: warning: overriding '-ffp-contract=fast' option with '-ffp-contract=on' [-Woverriding-t-option]
$ bin/clang -c x.c -Ofast -fno-fast-math
clang-13: warning: overriding '-ffp-contract=fast' option with '-ffp-contract=on' [-Woverriding-t-option]
```
The warning seems unexpected... I don't think it makes sense to warn here? Even if there is some reason to warn here, it's hard to understand the relationship between the warning text and the actual arguments.
I think this is a regression from https://reviews.llvm.org/D107994 .
cc @zahiraam @andykaylor
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNUk2PmzAQ_TVwGYGIDZtw4LBtutKeeqnU84AHcAM2tU2S7a_vQJLdzaracyXLnrHfPL_5qK16qaKH7LqyfZQ9RiKHWptIPDUDmg6SBs5pA0nbog_JiKFn29jk1b2EreBkIyP5CCd0RptuMe2RnNOKPYjElkmmpLEmOGxCJPcLB1-DnYK2Bk6ayf8Bs2YBRcWX5OcbXxKSS1hU7D9X_n355r8V_aH66_6jp5se8ESjh9nQeaImkErTFJ5BrfQBQq_NAXSAEQ_kGWw8QbBrNPTkKJJPAN-OZEC3jOYb0IyzI4Ej9JzAHVp8ZTJm9tCjU8vbbBQ5H9CoJZyDBlwS8L2eoKZwIqYO7_QGOge4obkUMw6ArptHMsGn77N8vqrn3S-ikMk7R94vZW2dHaEPYfLcEW4pL0dHTSefDsNxTK3r-Gq_ybZlmcMdb9NAlGd_sNcOcVxslvNywJfBOohVJVUpS4yDDgNVl1G5iZ-Qf1_bLj4ZeCHi2Q3VvbqO52Cu08aO7CwSr0cyOfuLO8eu9n4mz0aRP4gi7iuZy1bIQhW7etfm8kGJpiXMN3WpsG5rEQ9Y0-ArniIemFhXIhMik6IUWVHIMpXFLmt3m11Rksi3ouBUaUQ9vJYodtWqoZ47z4-D9uGtfvGSbGeIbvw4h966ilqnSY2Y_J51E6-iq1XxX-f1WrY">