How to allocate memory safely in RTL, preferably on the stack? (relating to the RTL-level if-converter)

Jeff Law law@redhat.com
Tue Sep 8 18:39:00 GMT 2015


On 09/08/2015 12:05 PM, Abe wrote:
> Dear all,
>
> In order to be able to implement this idea for stores, I think I need
> to make some changes to the RTL if-converter such that it will
> sometimes add -- to the code being compiled -- a new slot/variable in
> the stack frame.  This memory needs to be addressable via a pointer
> in the code being generated, so AFAIK just allocating a new
> pseudo-register won`t work and AFAIK using an RTL "scratch" register
> also won`t work.  I also want to do my best to ensure that this
> memory is thread-local.  For those reasons, I`m asking about the
> stack.
Look at assign_stack_local.


Jeff



More information about the Gcc mailing list