mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
971 B

  1. This patch is extracted from
  2. http://gcc.gnu.org/ml/gcc-patches/2004-01/msg00791.html
  3. - Juergen "George" Sawinski <jsaw@gmx.net>
  4. --- gcc-3.2.3/gcc/cfgcleanup.c.orig 2004-01-12 01:03:22.000000000 +0100
  5. +++ gcc-3.2.3/gcc/cfgcleanup.c 2004-01-12 01:04:59.000000000 +0100
  6. @@ -1640,7 +1640,7 @@
  7. /* If the jump insn has side effects,
  8. we can't kill the edge. */
  9. && (GET_CODE (b->end) != JUMP_INSN
  10. - || (flow2_completed
  11. + || (reload_completed
  12. ? simplejump_p (b->end)
  13. : onlyjump_p (b->end)))
  14. && merge_blocks (s, b, c, mode))
  15. --- gcc-3.2.3/gcc/cfgrtl.c.orig 2004-01-12 01:03:40.000000000 +0100
  16. +++ gcc-3.2.3/gcc/cfgrtl.c 2004-01-12 01:06:41.000000000 +0100
  17. @@ -674,7 +674,7 @@
  18. if (tmp || !onlyjump_p (insn))
  19. return false;
  20. - if ((!optimize || flow2_completed) && tablejump_p (insn))
  21. + if ((!optimize || reload_completed) && tablejump_p (insn))
  22. return false;
  23. /* Avoid removing branch with side effects. */