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

    <tr>
        <th>Summary</th>
        <td>
            flang doesnot support  -save-temps option 
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          laurent-alfonsi-linaro
      </td>
    </tr>
</table>

<pre>
    The reproduce case is very simple :
  $ touch empty.f90
  $ flang-new   -c emtpy.f90
    # this produce a "emtpy" .o
  $ flang-new   -c emtpy.f90   -save-temps=obj -Qn
  flang-new: warning: argument unused during compilation: '-Qn'
  error: unknown integrated tool '-cc1as'. Valid tools include '-fc1'.

It seems it invokes the wrong tool.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNUU2PmzAQ_TVwGYEAQ-IcOGQVrdRjpap3Y0_Au8ZG_kiUf98xadrurQjhMe_Nmzczk1OP8ceC4HHzTiWJIEVA0AFu6B8Q9LoZhIKdi-ZSNGeAoushuiQXwHWLj_p6av6FrkbYubJ4B4BKEiduXziZxSAuVOBVUNCvbifSCbX7H7l8DeKGVSQXoWAXN31A9d2-cv_kkXO4C2-1nXMo_JxWtBGSTQEVqOQJAenWTRsRtbOZVXTHrNUdX3LovfMZSfbTursFbSPOXkSSiM6ZPUPKVgQKavgpjH4CgZjSJIU74yrbjD9Vn99vEQLiSrxI1Jv7xEDTQbh7R76yxG96iWN7oIfzlvFSjUyd2EmUUUeD494uKIfBOhJM2-Z8_DIicFvuDsrkzbjEmId2Lrp3emcdlzTVNAO6GHN7HRUt6ANlpKsOISH19j7wgR_LZeSNEseOib5njE8nNhwF51MrW6VO8nDqSyMmNGEshjdaat7fLkFxMVxKPXZN17VNNzR8GBivD6yVDZ-4mnop-g6LvsFVaFNnH7Xzc-nH3dKU5kCg0SGGv6AIQc8WcS9H-iLFxVGGSJ52XQlzdTboymgrvCt3J-PeyS8gwfHo">