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

    <tr>
        <th>Summary</th>
        <td>
            Add Flang frontend support for the missing target specific options.
        </td>
    </tr>

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

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

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

<pre>
    In `clang/lib/Driver/ToolChains/Flang.cpp` resides the following TODO: `// TODO: Add target specific flags, ABI, mtune option etc.` under the function `void Flang::addTargetOptions`.

Here an analysis is needed for all the missing target specific flags that need to be supported by `Flang` (and are already supported by `Clang`).

Someone should also extend the visibility of those options to include `FlangOption, FC1Option` under `clang/include/clang/Driver/Options.td` before intervening in `clang/lib/Driver/ToolChains/Flang.cpp`.

This is going to need proper testcases for the testsuite in order to be upstreamable.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU02PmzAQ_TXmMlpknEDCgUM2Eeqe9tD8AYMHcGVs5DFp8-8rO2zaVdtLL7EyzMeb995IIj1axIaVr6y8ZHINk_PNLK0jaeU4Tlnn1L15s8Aq3htpRyZaozsm2ovXN_RMtFfnzHmS2hITbRtz8n5ZWMXBI2mFBGFCGJwx7ru2I1zfL-9sd4odmWiZaJ-Rk1IQpB8xAC3Y60H3MBg5EhNnOL2-xWcOq0VwS9DOAoY-j4NWq9A_xqy2T59YxW9OK0iA2O7Ediep1DV1f0_VxCqeM35h_PT4_YIeQVqQVpo7aQJNYBEVKhicB2lMGjFrorjHX5FCmGRIVRAcdAi0LovzARV09wjqgafiwMRRWgUyzjQepbr_kXvecpmoPwH96mZ0FoEmtxoF0pAD_BHQqgTwpkl32uhwBzdAmBx9EEYRlLa9WRU-wTzYiNy252L78-T0N9m3Oibaj8jTAhuheVCxssPBeQRtA_ob2siV_i8DfVr6Oj0UGV0i3z1IXrxbovRIoZeElJSKJMQIrTpEHOB88kcSZF0oeJSz7AxuAzLV7FS9q2WGTXEQxz0_irLMpkaqIx6OfSVQ7IVS5UEJoVTdlfxQy11VZroRXOwLzo_FQewLkQtVl8P-0NWD5FiLI9tznKU2uTG3OXd-zDTRik1RFGVVZkZ2aCidnxDDgx4RL9E3seClW0die240BfrVIuhgsInXktiCwTub1N8M9CThX1bd3JBnqzfNFMJC8ULSMY46TGuX926OQpnbx_OyePcN-xCNEDeIWm1L3BrxMwAA__-demrt">