<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63384>63384</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libunwind] <alloca.h> is not being explicitly included when using stack allocated .cfi_remember_state
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
BlamKiwi
</td>
</tr>
</table>
<pre>
`<alloca.h>` is not being explicitly included when using stack allocated `.cfi_remember_state`. `alloca` being declared in `<stdlib.h>` is an extension and is not supported by __STRICT_ANSI__ compliant C standard libraries. libunwind fails to build against picolibc and newlib because of this.
Either explicitly include `<alloca.h>` or change the call to use `__builtin_alloca` instead.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykkk9vnDAQxT-NuYyCDOzCcuCQfytFlXpockdjexamNTayTTf59pV3m6aVcusFLM943m-eHsbIkyMaxP5O7B8K3NLsw3BncfnCZy6UN2-DaKVo7tFar7GcRfMoWgkcwfkEithNQK-rZc3JvgE7bTdDBs4zOdhiLseE-gdcByQyIFpZ6hOPgRZaFIUxJkyUb3Pp2pc1rsMNaYuBDLCDK0pMxrL6GwUd0GsiF9k7QGfe8eK2rj5kTfUG4_j88u3p_mW8_fr8NI6g_bJaRpfgPiM6g8GAZRUwMMUyHzd3ZmfghGwjJA9qY2sAJ2QXE6ysvWWlL4qOzpYVKNK4RQJ_gjRzLEHIByFvr99HTjOFT-yCTz32AfSMbiJIM4FGazNDni5aOY4ZJrEbPwzLVISmhMIMjembHgsaqvbQVW1VV4diHno07aGqdE2y69qe-rreNcbgyVR7hVoWPNSybmRb9bLbN82hVPuu7lppdNf3WnVS7CQtyLa09udS-jAVHONGQ9s0h11hUZGN73EKQ266UdsUxU5ajil-PEuc7CV4f3wW-wf414X_itknGSu2YIc5pTWK5lbUR1EfJ07zpkrtF1EfM9zv380a_HfSSdTHy4JR1MfLjr8CAAD__4TSElA">