[PATCH][GCC][AARCH64] PR target/90712 Fix gcc.dg/rtl/aarch64/subs_adds_sp.c regression
authorSam Tebbs <sam.tebbs@arm.com>
Fri, 5 Jul 2019 13:16:55 +0000 (13:16 +0000)
committerSam Tebbs <samtebbs@gcc.gnu.org>
Fri, 5 Jul 2019 13:16:55 +0000 (13:16 +0000)
gcc/
2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>

PR target/90712
* aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk check
with a frame laid out check.

From-SVN: r273138

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index 15d79199705423831028abf777dd611e8e3347d1..53e671410eddc5be0e172e3f8d1976f914f5ef62 100644 (file)
@@ -1,3 +1,9 @@
+2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
+
+       PR target/90712
+       * aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk check
+       with a frame laid out check.
+
 2019-07-05  Richard Biener  <rguenther@suse.de>
 
        * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
index 5a923ca006b332bd4278388be9b729f2c9c29dee..a18fbd0f0aa8acc000fd57af5d060961ef0a4e13 100644 (file)
@@ -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");
 }