From: Sam Tebbs Date: Fri, 5 Jul 2019 13:16:55 +0000 (+0000) Subject: [PATCH][GCC][AARCH64] PR target/90712 Fix gcc.dg/rtl/aarch64/subs_adds_sp.c regression X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bdc7dcbbd2eee4f114c09443933cc37a546dbff;p=gcc.git [PATCH][GCC][AARCH64] PR target/90712 Fix gcc.dg/rtl/aarch64/subs_adds_sp.c regression gcc/ 2019-07-05 Sam Tebbs PR target/90712 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk check with a frame laid out check. From-SVN: r273138 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 15d79199705..53e671410ed 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-05 Sam Tebbs + + PR target/90712 + * aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk check + with a frame laid out check. + 2019-07-05 Richard Biener * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 5a923ca006b..a18fbd0f0aa 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -15745,7 +15745,7 @@ aarch64_asm_output_external (FILE *stream, tree decl, const char* name) void aarch64_post_cfi_startproc (FILE *f, tree ignored ATTRIBUTE_UNUSED) { - if (!cfun->is_thunk && aarch64_return_address_signing_enabled () + if (cfun->machine->frame.laid_out && aarch64_return_address_signing_enabled () && aarch64_ra_sign_key == AARCH64_KEY_B) asm_fprintf (f, "\t.cfi_b_key_frame\n"); }