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

    <tr>
        <th>Summary</th>
        <td>
            Add __builtin_stack_address to clang to increase compatibility to gcc
        </td>
    </tr>

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

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

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

<pre>
    I want to get the stack address and gcc has the function [__builtin_stack_address](https://gcc.gnu.org/onlinedocs/gcc/Return-Address.html). It would be god, to also have this buildin in clang, it would on top increase compatibility to gcc.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8kd2O2yAQhZ8G34xi4YnJzwUX2a4s7W1fIOJnYtMSiMyw0b59hXerSpXaK5AOZzhnPlNKmBORFupFqNfOVF7yqieyljqb_Yd-g6dJDJxhJgZeCAob9xOM9yuVAiZ5mJ2DxZRNvdXkOOQEQr1cr7aGyCFdN8_1yyPUq8DTwvwoYn8ROAmcZuf6OdU-r7PAKacYEvnsyqckcPpOXNe0u3yO6Be-R4HnHt4YnrlGD5Zgzl7gt5bVxJJhMe8EvIQCLYYPCUICF02a26vw25gTcH5ASG4lUwhcvj8MBxti4I-tuHN95_Xen_dn05EejvJ0GNRByW7RREqebsr7o0GnxpGklyP5cbj5oyJ37oJGiaNExEHhEU-9HIaRvLSjGg5kzUGMku4mxD7G93tbQBdKqaRPeNhjF42lWDY-iImesIkCseFadfPsbJ2LGGUMhcufKRw4kr54D__g0Lpt62iX_9bv6hr1X8ACL9X2Lt8FTu3Pr2P3WPMPcixw2pI2gluTXwEAAP__uovPnQ">