Message ID | 1408745131-24297-5-git-send-email-rth@redhat.com |
---|---|
State | New |
Headers | show |
On 22 August 2014 23:05, Richard Henderson <rth@redhat.com> wrote: > Generic code already handles calls_alloca for determining > the need for a frame pointer. > > * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Don't > check calls_alloca. Ok Thanks /Marcus
On 09/03/2014 04:06 AM, Marcus Shawcroft wrote: > On 22 August 2014 23:05, Richard Henderson <rth@redhat.com> wrote: >> Generic code already handles calls_alloca for determining >> the need for a frame pointer. >> >> * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Don't >> check calls_alloca. > > Ok Thanks /Marcus > Thanks. I fixed up the conflicts with the rtx_insn patch set and committed all four patches squashed together. r~
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index c890773..b80f283 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -1805,11 +1805,6 @@ aarch64_libgcc_cmp_return_mode (void) static bool aarch64_frame_pointer_required (void) { - /* If the function contains dynamic stack allocations, we need to - use the frame pointer to access the static parts of the frame. */ - if (cfun->calls_alloca) - return true; - /* In aarch64_override_options_after_change flag_omit_leaf_frame_pointer turns off the frame pointer by default. Turn it back on now if we've not got a leaf