f@3049: Author: ebotcazou f@3049: Date: Sun Sep 2 10:37:49 2012 f@3049: New Revision: 190860 f@3049: f@3049: URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190860 f@3049: Log: f@3049: PR rtl-optimization/54369 f@3049: * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before f@3049: calling dbr_schedule. f@3049: * config/sparc/sparc.c (sparc_reorg): Likewise. f@3049: f@3049: Modified: f@3049: branches/gcc-4_6-branch/gcc/ChangeLog f@3049: branches/gcc-4_6-branch/gcc/config/mips/mips.c f@3049: branches/gcc-4_6-branch/gcc/config/sparc/sparc.c f@3049: --- f@3049: --- gcc-4_6-branch/gcc/config/mips/mips.c 2012/09/02 10:36:54 190859 f@3049: +++ gcc-4_6-branch/gcc/config/mips/mips.c 2012/09/02 10:37:49 190860 f@3049: @@ -15083,7 +15083,10 @@ f@3049: } f@3049: f@3049: if (optimize > 0 && flag_delayed_branch) f@3049: - dbr_schedule (get_insns ()); f@3049: + { f@3049: + cleanup_barriers (); f@3049: + dbr_schedule (get_insns ()); f@3049: + } f@3049: mips_reorg_process_insns (); f@3049: if (!TARGET_MIPS16 f@3049: && TARGET_EXPLICIT_RELOCS f@3049: --- gcc-4_6-branch/gcc/config/sparc/sparc.c 2012/09/02 10:36:54 190859 f@3049: +++ gcc-4_6-branch/gcc/config/sparc/sparc.c 2012/09/02 10:37:49 190860 f@3049: @@ -9456,7 +9456,10 @@ f@3049: /* We need to have the (essentially) final form of the insn stream in order f@3049: to properly detect the various hazards. Run delay slot scheduling. */ f@3049: if (optimize > 0 && flag_delayed_branch) f@3049: - dbr_schedule (get_insns ()); f@3049: + { f@3049: + cleanup_barriers (); f@3049: + dbr_schedule (get_insns ()); f@3049: + } f@3049: f@3049: /* Now look for specific patterns in the insn stream. */ f@3049: for (insn = get_insns (); insn; insn = next) f@3049: