From: Max Filippov Date: Fri, 17 May 2019 20:23:49 +0000 (+0000) Subject: gcc: aarch64: move assemble_start_function / assemble_end_function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b5777c6c7059b6b8e372e567a74bdccb59a02c3;p=gcc.git gcc: aarch64: move assemble_start_function / assemble_end_function Change that moved assemble_start_function/assemble_end_function to backends missed aarch64. Fix that. gcc/ 2019-05-17 Max Filippov * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call assemble_start_function and assemble_end_function. From-SVN: r271359 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bee1292ac22..32075f689cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-05-17 Max Filippov + + * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call + assemble_start_function and assemble_end_function. + 2019-05-17 Thomas Schwinge PR middle-end/89433 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 93dc99fc365..971c4d0cf43 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -5979,6 +5979,7 @@ aarch64_output_mi_thunk (FILE *file, tree thunk ATTRIBUTE_UNUSED, int this_regno = R0_REGNUM; rtx this_rtx, temp0, temp1, addr, funexp; rtx_insn *insn; + const char *fnname = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (thunk)); if (aarch64_bti_enabled ()) emit_insn (gen_bti_c()); @@ -6046,9 +6047,12 @@ aarch64_output_mi_thunk (FILE *file, tree thunk ATTRIBUTE_UNUSED, insn = get_insns (); shorten_branches (insn); + + assemble_start_function (thunk, fnname); final_start_function (insn, file, 1); final (insn, file, 1); final_end_function (); + assemble_end_function (thunk, fnname); /* Stop pretending to be a post-reload pass. */ reload_completed = 0;