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

    <tr>
        <th>Summary</th>
        <td>
            [Flang, x86_64] As of 18.x, flang-new errors on gcc-style instruction set options 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          martin-frbg
      </td>
    </tr>
</table>

<pre>
    Not sure if this is intentional, at the very least it appears to be an undocumented change in behaviour:
flang-new 17.x used to accept command line options like `-m64`, `-mavx2` just like clang, with 18.1 these cause an immediate abort. Also, option `-mcpu=help` only returns "unsupported option '-mcpu=' for target x86_64-unknown-linux-gnu`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxEUs2O8ygQfBp8adnC-CfxwYfsRjnuK6wwbtvMYLDoJpO8_Ypk842EhICuoqq7NJFdPeIour9Edy104i3EcdeRrS-XOK3FFObn-E9goBQR7AK8WYK8PKNnG7x2Qv0NmoE3hDvGJzjUxGAZ9HGgjgQcYELQHpKfg0k7esYZzKb9imA9TLjpuw0piuYi5FXIy-K0X0uPP1CfqgckwjmzaGPwYDBh37WfwVmPEI6sgsDZbwTRy3LvW9HLLOp10veHEr2Er0T8LjKZPL__WN6gPld11k4IRid66bT7jrPVjKCnELmCi6OQEe_P3sTmSKK5buiOTB-8e0JETtETCKWSp3QcIWanH5Q6fVBCnWAJEVjHFRke5_7fvi2T__bhx5fO-vQoV59EL4t5bOahGXSBY32q5aC68zAU29jotmvmHqeln9tpmptJdWet63lZ2l4NurCjkqqVjZJyqOtmqHqNk1Fdg8O5W-ZuEK3EXVtXOXffqxDXwhIlHM_dUMvC6QkdfaIRx1xUTmkl0UpniekXxpbdK0S3T2ffhkR3hQtBWHKTH_n-d64YY4gEwcNqTEn8dDkKxDGZV7MI-c9oixTduDEflAOibkLdVstbmioTdqFuWcj_W3nE8IWGhbq9zJBQt5ef_wIAAP__wxv2tQ">