gcc: aarch64: move assemble_start_function / assemble_end_function
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 17 May 2019 20:23:49 +0000 (20:23 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Fri, 17 May 2019 20:23:49 +0000 (20:23 +0000)
Change that moved assemble_start_function/assemble_end_function to
backends missed aarch64. Fix that.

gcc/
2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>

* config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
assemble_start_function and assemble_end_function.

From-SVN: r271359

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

index bee1292..32075f6 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
+       assemble_start_function and assemble_end_function.
+
 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
 
        PR middle-end/89433
index 93dc99f..971c4d0 100644 (file)
@@ -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;