<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/74361>74361</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-17: error: unsupported option '-mfpu=' for target 'aarch64-unknown-linux-musl'
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          12101111
      </td>
    </tr>
</table>

<pre>
    I found this issue from configure script in ghostscript-gpl

```shell
> clang-16 -mfpu=neon test.c
clang-16: warning: argument unused during compilation: '-mfpu=neon' [-Wunused-command-line-argument]
> clang-16 -mfpu=neon test.c -lm
> clang-17 -mfpu=neon test.c
clang-17: error: unsupported option '-mfpu=' for target 'aarch64-unknown-linux-musl'
> clang-17 -mfpu=neon test.c -lm
> gcc -mfpu=neon test.c
gcc: error: unrecognized command-line option '-mfpu=neon'
> gcc -mfpu=neon test.c -lm
gcc: error: unrecognized command-line option '-mfpu=neon'
```

test.c:

```c
#include <arm_neon.h>
int main() {
  int32x4_t round = vdupq_n_s32(10);
 return 0;
}
```

clang 17 has a inconsistent behavior depend on whether a linker flag is given or not. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0lMuO6zYMhp9G3hAOJPmWLLyYaU6APkGXgSwzsnpkytUlmfbpC-fSSdtpZxYtYNiyRFLfL5FUMVpDiD1rXlmzL1ROkw-9kIILIUQx-PHX_kc4-UwjpMlGsDFmhFPwM2hPJ2tyQIg62CWBJTCTj-n2W5rFMb5n_OX-bvntiRO6x0r1DbRTZErRQjmflsyqPaEnSBjTRt-sHhaseoGLCmTJrEMVTJ6REmTKEUcYc7BkQPt5sU4l62m1YrJ7DsxkB6x5LX-6OZXaz7OisXSWsHxEZM3-a3xQuvlvlt2nSroVDEPwYR1kinlZfEg4gl9W7mfoFfjkAyQVDKZ1Ramgp7YuM30nf6EVPb-Vc46Oye5rNH_mNlr_M7LR-i-0AbU3ZH_DEZ5P7wP2-4F_utM7zn-32yPbnlPwrqt6-TAv74KZrCxpl0cEVv2gwnxcA28mVn27GVhKMCtLTG6Z3AHrXm_zAJZSJd_qY4JwrRhW7eE85uWXIx1jJZncCs7kjlUPj4ApBwL-xwzr9v_Cf71SEB1MKoICS9pTtDGtRTDgpM7WBxhxQRrBE1wmTBMGUOAsfccAJ6cM2AjGnpHAByCfNlCMfTXuqp0qsBcdF53Y8rotpp7jTjRbIUdUrcJTO-qubhvOhawHvRvqwvaSy0pIXoud7GSzGRRudas1V7rZdoNgNcdZWbdx7jxvfDDFtX_0XV21onBqQBevvUdKwsutuTAp11YU-tWnHLKJrObOxhTfoySbHPb_fzUVObh-SmmJa9LIA5MHY9OUh432M5OHFej-KZfgf0admDxcZUQmD1eZvwcAAP__YC2s2g">