000-gcc-bug-54369.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Author: ebotcazou
  2. Date: Sun Sep 2 10:37:49 2012
  3. New Revision: 190860
  4. URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190860
  5. Log:
  6. PR rtl-optimization/54369
  7. * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
  8. calling dbr_schedule.
  9. * config/sparc/sparc.c (sparc_reorg): Likewise.
  10. Modified:
  11. branches/gcc-4_6-branch/gcc/ChangeLog
  12. branches/gcc-4_6-branch/gcc/config/mips/mips.c
  13. branches/gcc-4_6-branch/gcc/config/sparc/sparc.c
  14. ---
  15. --- gcc-4_6-branch/gcc/config/mips/mips.c 2012/09/02 10:36:54 190859
  16. +++ gcc-4_6-branch/gcc/config/mips/mips.c 2012/09/02 10:37:49 190860
  17. @@ -15083,7 +15083,10 @@
  18. }
  19. if (optimize > 0 && flag_delayed_branch)
  20. - dbr_schedule (get_insns ());
  21. + {
  22. + cleanup_barriers ();
  23. + dbr_schedule (get_insns ());
  24. + }
  25. mips_reorg_process_insns ();
  26. if (!TARGET_MIPS16
  27. && TARGET_EXPLICIT_RELOCS
  28. --- gcc-4_6-branch/gcc/config/sparc/sparc.c 2012/09/02 10:36:54 190859
  29. +++ gcc-4_6-branch/gcc/config/sparc/sparc.c 2012/09/02 10:37:49 190860
  30. @@ -9456,7 +9456,10 @@
  31. /* We need to have the (essentially) final form of the insn stream in order
  32. to properly detect the various hazards. Run delay slot scheduling. */
  33. if (optimize > 0 && flag_delayed_branch)
  34. - dbr_schedule (get_insns ());
  35. + {
  36. + cleanup_barriers ();
  37. + dbr_schedule (get_insns ());
  38. + }
  39. /* Now look for specific patterns in the insn stream. */
  40. for (insn = get_insns (); insn; insn = next)