diff options
-rw-r--r-- | gcc-4.4.3/gcc/config/mips/mips.c | 5 | ||||
-rw-r--r-- | gcc-4.6/gcc/config/mips/mips.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc-4.4.3/gcc/config/mips/mips.c b/gcc-4.4.3/gcc/config/mips/mips.c index 2c19c1c30..23dea588e 100644 --- a/gcc-4.4.3/gcc/config/mips/mips.c +++ b/gcc-4.4.3/gcc/config/mips/mips.c @@ -13345,7 +13345,10 @@ mips_reorg (void) if (mips_r10k_cache_barrier != R10K_CACHE_BARRIER_NONE) r10k_insert_cache_barriers (); 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-4.6/gcc/config/mips/mips.c b/gcc-4.6/gcc/config/mips/mips.c index 8069a0bd7..87bf18e6c 100644 --- a/gcc-4.6/gcc/config/mips/mips.c +++ b/gcc-4.6/gcc/config/mips/mips.c @@ -15083,7 +15083,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 |