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

    <tr>
        <th>Summary</th>
        <td>
            __attribute__((naked)) should disable -finstrument-function*
        </td>
    </tr>

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

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

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

<pre>
    The asm in a naked function may reasonably expect the argument registers to be live, however they may be clobbered by the instrumentation function called by `-finstrument-function*`. Therefore, we shouldn't insert calls to the instrumentation functions in naked functions.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kb-S2zwMxJ8GajDW0NAfSwWL-76Mn-B6DylBEhNK9JCQHb99RswlNymSigUXv8UuTEpu3pg1NP9B86Uwuywh6vswFDaML_2-MJq0otvQ4Ga-8YjTvg3iwoareWFkk8JmrH8hf7_zICjHRJz3lTfByLNLwjGhBLSM3j0Y6H9cwpMfHA_xK3Ms4-CDtRx5RPvKFLcliZljst9v48F4_1MGrTpNn7rTLwnQG7SqxPeFI08hZtMnY1rC7scN6CIHnqNkWF7vX5bpKODP-KksRl2NfdWbgvW57Sp1oaamYtHj0FTtOFya2k5tc7H91J1bQxPX9aiadiqcJkWValSllOoVlWync2faji4VE9UGasWrcb70_rGWIc6FS2ln3VKj6sIbyz7lkxFt_MT8CUTHBaM-Zk52nxPUyrsk6ZMiTjzr282IRGd34dsNqAPqcjagHqj_KAlHl4z1jH8ruNij14vIPUH1BnQFus5Olt2WQ1iBrofpx3O6x_CVBwG65lUT0DVH-REAAP__DUnZHg">