aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2013-08-06 18:51:43 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2013-08-06 18:51:43 +0000
commitc5a12e2699372be7ca82d29bd8cd88d23fe16e53 (patch)
tree2c60ecddb77ab5f9d87220780b6bc5c168bb51ca
parente1d15312420e5b61fc9732daa9af9511a4cc17fd (diff)
downloadgcc-c5a12e2699372be7ca82d29bd8cd88d23fe16e53.zip
gcc-c5a12e2699372be7ca82d29bd8cd88d23fe16e53.tar.gz
gcc-c5a12e2699372be7ca82d29bd8cd88d23fe16e53.tar.bz2
mips.c (insert_pass_mips_machine_reorg2): Move into...
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. From-SVN: r201542
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/mips/mips.c16
2 files changed, 16 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5dec128..66ce852 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 05ba003..4da80f4 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -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 */
-};
/* 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)