revert: alpha.c (alpha_output_mi_thunk_osf): Allocate insn locators before emit_insn...
authorUros Bizjak <ubizjak@gmail.com>
Fri, 4 Sep 2009 19:57:51 +0000 (21:57 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 4 Sep 2009 19:57:51 +0000 (21:57 +0200)
2009-09-04  Uros Bizjak  <ubizjak@gmail.com>

Revert:
2009-08-18  Uros Bizjak  <ubizjak@gmail.com>

* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
locators before emit_insn is called.

From-SVN: r151441

gcc/ChangeLog
gcc/config/alpha/alpha.c

index 3523c0b..d11805b 100644 (file)
@@ -1,3 +1,11 @@
+2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
+
+       Revert:
+       2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
+       locators before emit_insn is called.
+
 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR bootstrap/41241
index 021ea0c..46ad8f4 100644 (file)
@@ -8663,8 +8663,6 @@ alpha_output_mi_thunk_osf (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
   HOST_WIDE_INT hi, lo;
   rtx this_rtx, insn, funexp;
 
-  insn_locators_alloc ();
-
   /* We always require a valid GP.  */
   emit_insn (gen_prologue_ldgp ());
   emit_note (NOTE_INSN_PROLOGUE_END);
@@ -8741,6 +8739,7 @@ alpha_output_mi_thunk_osf (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
      instruction scheduling worth while.  Note that use_thunk calls
      assemble_start_function and assemble_end_function.  */
   insn = get_insns ();
+  insn_locators_alloc ();
   shorten_branches (insn);
   final_start_function (insn, file, 1);
   final (insn, file, 1);