<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/110536>110536</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang 19.1.0 Windows release binary fails when targeting MIPS
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Mr-Wiseguy
</td>
</tr>
</table>
<pre>
As of the latest release (https://github.com/llvm/llvm-project/releases/tag/llvmorg-19.1.0), the Windows clang binary is unable to compile when targeting MIPS. The cc1 pass is reporting that some flags are invalid, such as `-mips-ssection-threshold=0` and `-mgpopt`, both of which are being inserted by the driver by translating the provided compilation flags (`-G0` and `-mno-abicalls` respectively). If I remove all compiler flags besides `-target mips -O2 -mips2 -mabi=32` the compiler will fail with `'No available targets are compatible with triple "mips"'`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU8GOozgQ_RpzKYHABBIOHHo7yqoPvbvSjtTnAlegRg5GLkOUvx-Z0D0aaS5zsrCr3nv1eIUiPExErar-UtU5wSWMzrfvPv1goWF5JJ0zj_ZFwF0hjAQWA0kAT5ZQCJQ-jSHMosoXpS9KXwYO49JlvbspfbF2_TzS2bvv1AelL3uvKH0JOOzvzg9p0WRFlivdKP26kX3wZNxdoLc4DdDxhP4BLLBM2FmC4KB3t5ktwX2kCQL6gQJPA7y__fd_Bt9Ggr4vYEaR2OZpdn57DyMGEHcjuFocBNAT8LSiZRO5ZelHQAFV5-mNZ0lFqA_spjSMnmR01qjynKs6B5zMs2yY3RxUncf-zoUxGnYfOQJ5go4iLU9CPpCB7rHNZzyv5Lcvj5NY3MURzN6tbMjsA2Ik37UqfYqEf_9KP7kUO-7RWon3nmSOkleyD6WbDN6u8Aaebm4lQGs_jfM7aEfChp4TP22EODik_2rYLIgHdqzKc6kjQRT5hXFna-GKbOHOYYTNheM_DnBFts9ftWE-jY5tGDheb-XB82xjlHQkUlorfVR1niWmLU1TNphQWxz18VhU5TFPxrbAur-eqlNzbXRXm4Opq648lT2RPvUdVgm3OteHvCnzoq7qIs90dS3peGhqqswBCdUhpxuyzWL0MueHhEUWaosir8o6sdiRlW0ntN7CF1VV58S3W5a7ZRB1yC1LkJ8QgYOl9nXL6jPKXwH-XJc9wtEq-V1mk8Xb9o8XatMe12mXv7b6RwAAAP__Qz9F9g">