[PATCH][GCC][AARCH64] Fix libstdc++ build failure after r271735
authorSam Tebbs <sam.tebbs@arm.com>
Thu, 30 May 2019 12:26:14 +0000 (12:26 +0000)
committerSam Tebbs <samtebbs@gcc.gnu.org>
Thu, 30 May 2019 12:26:14 +0000 (12:26 +0000)
gcc/ChangeLog
* aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
cfun->is_thunk check.

From-SVN: r271780

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

index 57533478f716ac54587c534afdd3481f90c15c05..2f6c2a2ea2c0562d9c25832b87179e2146b255eb 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
+
+       * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add 
+       cfun->is_thunk check.
+
 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
 
        * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
index 9e4b335244acea03d974521a2dc6a914317e7727..757a6210ab7d155fa0a122a669d755bb0332fdf0 100644 (file)
@@ -15370,7 +15370,7 @@ aarch64_declare_function_name (FILE *stream, const char* name,
 void
 aarch64_post_cfi_startproc (FILE *f, tree ignored ATTRIBUTE_UNUSED)
 {
-  if (aarch64_return_address_signing_enabled ()
+  if (!cfun->is_thunk && aarch64_return_address_signing_enabled ()
       && aarch64_ra_sign_key == AARCH64_KEY_B)
        asm_fprintf (f, "\t.cfi_b_key_frame\n");
 }