2 Date: Sun Sep 2 10:37:49 2012
5 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190860
7 PR rtl-optimization/54369
8 * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
10 * config/sparc/sparc.c (sparc_reorg): Likewise.
13 branches/gcc-4_6-branch/gcc/ChangeLog
14 branches/gcc-4_6-branch/gcc/config/mips/mips.c
15 branches/gcc-4_6-branch/gcc/config/sparc/sparc.c
17 --- a/gcc/config/mips/mips.c
18 +++ b/gcc/config/mips/mips.c
19 @@ -15083,7 +15083,10 @@ mips_reorg (void)
22 if (optimize > 0 && flag_delayed_branch)
23 - dbr_schedule (get_insns ());
25 + cleanup_barriers ();
26 + dbr_schedule (get_insns ());
28 mips_reorg_process_insns ();
30 && TARGET_EXPLICIT_RELOCS
31 --- a/gcc/config/sparc/sparc.c
32 +++ b/gcc/config/sparc/sparc.c
33 @@ -9452,7 +9452,10 @@ sparc_reorg (void)
34 /* We need to have the (essentially) final form of the insn stream in order
35 to properly detect the various hazards. Run delay slot scheduling. */
36 if (optimize > 0 && flag_delayed_branch)
37 - dbr_schedule (get_insns ());
39 + cleanup_barriers ();
40 + dbr_schedule (get_insns ());
43 /* Now look for specific patterns in the insn stream. */
44 for (insn = get_insns (); insn; insn = next)