From: dmalcolm Date: Tue, 6 Aug 2013 18:51:43 +0000 (+0000) Subject: 2013-08-06 David Malcolm X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f6ad59d8ba56b21e8f5dedb6d3792e1424962a1;p=thirdparty%2Fgcc.git 2013-08-06 David Malcolm * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5dec128162db..66ce8528f6c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2013-08-06 David Malcolm + + * 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 * 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 05ba003b7bdf..4da80f42e7b2 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)