]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2013-08-06 David Malcolm <dmalcolm@redhat.com>
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Aug 2013 18:51:43 +0000 (18:51 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Aug 2013 18:51:43 +0000 (18:51 +0000)
* config/mips/mips.c (insert_pass_mips_machine_reorg2): Move
into...
(mips_option_override): ...here, porting to new C++ API for
passes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201542 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.c

index 5dec128162dbd98a69dd870c56cf66bcbf3f0a21..66ce8528f6c8292d8e5c29f1c0501a42d95e8409 100644 (file)
@@ -1,3 +1,10 @@
+2013-08-06  David Malcolm  <dmalcolm@redhat.com>
+
+       * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move
+       into...
+       (mips_option_override): ...here, porting to new C++ API for
+       passes.
+
 2013-08-06  Jan Hubicka  <jh@suse.cz>
 
        * cgraph.c (cgraph_get_body): New function based on lto.c
index 05ba003b7bdfd99eaff0944ce7373b56d7d60513..4da80f42e7b248aa61681dd0facc97844f30fa4f 100644 (file)
@@ -56,6 +56,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "target-globals.h"
 #include "opts.h"
 #include "tree-pass.h"
+#include "context.h"
 
 /* True if X is an UNSPEC wrapper around a SYMBOL_REF or LABEL_REF.  */
 #define UNSPEC_ADDRESS_P(X)                                    \
@@ -16374,13 +16375,6 @@ make_pass_mips_machine_reorg2 (gcc::context *ctxt)
   return new pass_mips_machine_reorg2 (ctxt);
 }
 
-struct register_pass_info insert_pass_mips_machine_reorg2 =
-{
-  &pass_mips_machine_reorg2.pass,      /* pass */
-  "dbr",                               /* reference_pass_name */
-  1,                                   /* ref_pass_instance_number */
-  PASS_POS_INSERT_AFTER                        /* po_op */
-};
 \f
 /* Implement TARGET_ASM_OUTPUT_MI_THUNK.  Generate rtl rather than asm text
    in order to avoid duplicating too much logic from elsewhere.  */
@@ -17174,6 +17168,14 @@ mips_option_override (void)
   /* We register a second machine specific reorg pass after delay slot
      filling.  Registering the pass must be done at start up.  It's
      convenient to do it here.  */
+  opt_pass *new_pass = make_pass_mips_machine_reorg2 (g);
+  struct register_pass_info insert_pass_mips_machine_reorg2 =
+    {
+      new_pass,                /* pass */
+      "dbr",                   /* reference_pass_name */
+      1,                       /* ref_pass_instance_number */
+      PASS_POS_INSERT_AFTER    /* po_op */
+    };
   register_pass (&insert_pass_mips_machine_reorg2);
 
   if (TARGET_HARD_FLOAT_ABI && TARGET_MIPS5900)