]> git.ipfire.org Git - thirdparty/gcc.git/commit
explow: Allow dynamic allocations after vregs
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 6 Nov 2023 10:49:58 +0000 (10:49 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Mon, 6 Nov 2023 10:49:58 +0000 (10:49 +0000)
commita7a45364dddef399bfb550235166df51108a3142
tree8e1948d50cc17514a215e485bfbe91913d685e05
parent17df6ddcf11aef6d200305d35641a7deb2f430e1
explow: Allow dynamic allocations after vregs

This patch allows allocate_dynamic_stack_space to be called before
or after virtual registers have been instantiated.  It uses the
same approach as allocate_stack_local, which already supported this.

gcc/
* function.h (get_stack_dynamic_offset): Declare.
* function.cc (get_stack_dynamic_offset): New function,
split out from...
(get_stack_dynamic_offset): ...here.
* explow.cc (allocate_dynamic_stack_space): Handle calls made
after virtual registers have been instantiated.
gcc/explow.cc
gcc/function.cc
gcc/function.h