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.

46 lines
1.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/gcc/gcc32/gcc-Os-fix.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. This patch is extracted from
  20. http://gcc.gnu.org/ml/gcc-patches/2004-01/msg00791.html
  21. - Juergen "George" Sawinski <jsaw@gmx.net>
  22. --- gcc-3.2.3/gcc/cfgcleanup.c.orig 2004-01-12 01:03:22.000000000 +0100
  23. +++ gcc-3.2.3/gcc/cfgcleanup.c 2004-01-12 01:04:59.000000000 +0100
  24. @@ -1640,7 +1640,7 @@
  25. /* If the jump insn has side effects,
  26. we can't kill the edge. */
  27. && (GET_CODE (b->end) != JUMP_INSN
  28. - || (flow2_completed
  29. + || (reload_completed
  30. ? simplejump_p (b->end)
  31. : onlyjump_p (b->end)))
  32. && merge_blocks (s, b, c, mode))
  33. --- gcc-3.2.3/gcc/cfgrtl.c.orig 2004-01-12 01:03:40.000000000 +0100
  34. +++ gcc-3.2.3/gcc/cfgrtl.c 2004-01-12 01:06:41.000000000 +0100
  35. @@ -674,7 +674,7 @@
  36. if (tmp || !onlyjump_p (insn))
  37. return false;
  38. - if ((!optimize || flow2_completed) && tablejump_p (insn))
  39. + if ((!optimize || reload_completed) && tablejump_p (insn))
  40. return false;
  41. /* Avoid removing branch with side effects. */