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

    <tr>
        <th>Summary</th>
        <td>
            Clang silently ignores -mabi with x86-64 target
        </td>
    </tr>

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

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

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

<pre>
    When using Clang to compile for any x86-64 target, Clang accepts `-mabi=` with any parameter and silently ignores it. [GCC uses the parameter to change the default calling convention.](https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html)

Asking for Clang to support the same options as GCC might be a bit much, but it would be nice to at least get a warning about the unrecognized option.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlUk2TmzAM_TXmolmGmISEA4c0O9vjHns2tgLeGpux5U3TX1-ZbL9nGGEhP70nPcZg7sOXGT3kZP0EF6c4UgAdltU6hGuIoPwdvp26p24PpOKEJOTl46bSGldKILrmaVGjFe0zH-Fmad5gq4pqQcLSxEDijp7cHezkQ8QElmoQh0-fLxfm55xm_ANSZMzMgtt3g1eVHYFWzhWpOvh37maDr8XhWcjTTLQm0Z6FfOFn0rqefK5DnDgLnjFogk6PEscy0eta8KmeaXFC9qJ5Fs35Ec_pa2Ep8_9aSsrrGiJtchKLhPDAg0pQZljsNBOMCApGS7BkPZdVjZl4UriF7EypequxtFMEDlUi4JUy5KaiL5RqDPnBkX1EHSZvv6P54KorHHZdt9_tj03TV2ZoTd_2qiJLDoeH0v_WvFnzMOUvH6sc3fDP2vhSHmu2nxPn3n--ntYY3lCz9S82pYxlj4djf-yqeTjtjVRt3-FV6hGlMhpNr3qpT52Rx76pnBrRpYGdFlJ6vMHWgs9sXGUH2UjZ9PIg26aVp1obra-Hk9Rm1xz3bSv2DS7KurroKH5WcdgkjXlKXHQ2UfpdVCnx3IgbHfdXmeYQh1dNgX8ZimrkG9WmYNgm-AGwJAIg">