diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-02 10:36:27 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-02 10:36:27 +0000 |
commit | c7e8f2d8fcaf2cf6d42f7bbe34fd73848ae0e562 (patch) | |
tree | 37f7caab339392c9226dbb570e377ccf9b688013 | |
parent | da0a0dc7cb7a116954d642b0b19fb9f7a370c7d4 (diff) | |
download | gcc-c7e8f2d8fcaf2cf6d42f7bbe34fd73848ae0e562.tar.gz |
PR rtl-optimization/54369
* config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
calling dbr_schedule.
* config/sparc/sparc.c (sparc_reorg): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190858 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 5 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 5 |
3 files changed, 15 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c9790e8af99..19c3645e8a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2012-09-02 Eric Botcazou <ebotcazou@adacore.com> + + PR rtl-optimization/54369 + * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before + calling dbr_schedule. + * config/sparc/sparc.c (sparc_reorg): Likewise. + 2012-09-01 Jakub Jelinek <jakub@redhat.com> PR target/54436 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 7721a7c1ce1..06b2ff4d0c3 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -15729,7 +15729,10 @@ mips_reorg (void) } if (optimize > 0 && flag_delayed_branch) - dbr_schedule (get_insns ()); + { + cleanup_barriers (); + dbr_schedule (get_insns ()); + } mips_reorg_process_insns (); if (!TARGET_MIPS16 && TARGET_EXPLICIT_RELOCS diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 59ce3d014ca..140332eb899 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -10691,7 +10691,10 @@ sparc_reorg (void) /* We need to have the (essentially) final form of the insn stream in order to properly detect the various hazards. Run delay slot scheduling. */ if (optimize > 0 && flag_delayed_branch) - dbr_schedule (get_insns ()); + { + cleanup_barriers (); + dbr_schedule (get_insns ()); + } /* Now look for specific patterns in the insn stream. */ for (insn = get_insns (); insn; insn = next) |