Hi all, Libstdc++ has been failing to build after I committed r271735. This patch fixes the build failure by checking if the current function is a thunk before emitting the .cfi_b_key_frame directive.
Committed as obvious in r271780. Apologies for the failure. 2019-05-30 Sam Tebbs <sam.te...@arm.com> * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add cfun->is_thunk check.
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 9e4b335244acea03d974521a2dc6a914317e7727..757a6210ab7d155fa0a122a669d755bb0332fdf0 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -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"); }