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

    <tr>
        <th>Summary</th>
        <td>
            [Clang] safestack is not supported by -fno-sanitize
        </td>
    </tr>

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

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

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

<pre>
    I was advised to report this as a bug by the folks on the Gentoo forums(if it isn't, then i apologize):

safestack, once enabled by passing -fsanitize=safestack, can't be then disabled by passing -fno-sanitize=safestack, like many of the other sanitize options. instead, it returns 
> "clang: error: unsupported argument 'safestack' to option '-fno-sanitize='".

this makes the feature to use within gentoo's package management system, and seems generally like an odd thing. this was tested using the following commands: 
> clang -m32 -fsanitize=safe-stack -fno-sanitize=safestack -x c -o test - <<<"int main(void) { return 0; }" 
> clang -fno-sanitize=safe-stack

clang was, in both cases, installed from the gentoo package manager.
if this is intended, it may be worth documenting.

Hope this information helps.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0VM2SszYQfBpxmcKFBTb2gcO36zjJNXmCAQ2gWEiURqxDnj4lwdbu97NVlG3MzHRPdyNk1oMlasTpRZxuGS5hdL75i9D8PaJyz_vi16x1am3-hCcyoHrTTAqCA0-z8wHCqBniE2iXAdoVwkjQO_NgcDbd_E42OAe988vEQl50DzqAZitkHYR8jUUWNODsjBv0fyTkVZTfRHETxf7J2BMH7B6x3NmOgCy2hlQEnOMWdoC8Z7Q6xAHl7buODhMWtLRhKc2_6LYu_2qA0Q-CCe0Krk87uTCSh_dycHPQzvIBtOVAqGKPDuApLN4y7KuUv4GQsjNoB1F-A_Le-fhjsbzMUUxSgH5YJrIBhKw_Uaij4htKfPIjWSFrIeXhs2TJlwkfxJsjhGHxFMcsTPDUYdQWhmRNhIIZuwcOaUscKFHglQNNcRe0Cpho4thBHo1ZN03QglMqhsAOhy0LMSaBOC6zJGX3QBj3jHedmya0iuPiH7okUSCfSvmzjXnS4GuDIP8XOshdQoUcRPm6X1JqG2BCbYW8vDmthLyCqF92Y6AQ5QuI-iak_JnLL-A2Jp9V3mqfyMlxC60LI3TItP_BAU0MWu_dlITYFP9Bbb87p_tNwnjZQFbRe5ImXGN6n86HEZTrUkai5p_J_OFm2gfY3vkJU1xGMjMfMtWU6lpeMaPmWMvT5Vgcz1U2Nue278_H_nhWCs9E1bWQFV7oUivsZIXXTDeykFVxLS7HUyWr6nDpZHsqquqoTu21O5OoCppQm4Mxb9PB-SHTzAs1x6Kuz2VmsCXD6YR5D7-U8bDxTWzI22VgURVGc-CPEUEHk46l19RxusGH35rBugAfL027fm9XtnjTjCHMMWVC3oW8DzqMS3vo3CTkPaLsX_ns3T_UBSHviTULed-JvzXy_wAAAP__Rp2yrg">