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.

54 lines
1.9 KiB

  1. This patch is taken from
  2. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11350
  3. jsaw
  4. ===================================================================
  5. RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
  6. retrieving revision 1.16114.2.883
  7. retrieving revision 1.16114.2.884
  8. diff -u -r1.16114.2.883 -r1.16114.2.884
  9. --- gcc/gcc/ChangeLog 2004/01/15 20:21:31 1.16114.2.883
  10. +++ gcc/gcc/ChangeLog 2004/01/16 11:06:57 1.16114.2.884
  11. @@ -1,3 +1,10 @@
  12. +2004-01-16 Jan Hubicka <jh@suse.cz>
  13. +
  14. + PR opt/11350
  15. + * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
  16. + after reload.
  17. + * cfgrtl.c (try_redirect_by_replacing_branch): Likewise.
  18. +
  19. 2004-01-15 J"orn Rennecke <joern.rennecke@superh.com>
  20. PR optimization/10392
  21. ===================================================================
  22. RCS file: /cvs/gcc/gcc/gcc/cfgcleanup.c,v
  23. retrieving revision 1.68.2.9
  24. retrieving revision 1.68.2.10
  25. diff -u -r1.68.2.9 -r1.68.2.10
  26. --- gcc/gcc/cfgcleanup.c 2004/01/01 13:19:39 1.68.2.9
  27. +++ gcc/gcc/cfgcleanup.c 2004/01/16 11:07:16 1.68.2.10
  28. @@ -1704,7 +1704,7 @@
  29. /* If the jump insn has side effects,
  30. we can't kill the edge. */
  31. && (GET_CODE (b->end) != JUMP_INSN
  32. - || (flow2_completed
  33. + || (reload_completed
  34. ? simplejump_p (b->end)
  35. : onlyjump_p (b->end)))
  36. && merge_blocks (s, b, c, mode))
  37. ===================================================================
  38. RCS file: /cvs/gcc/gcc/gcc/cfgrtl.c,v
  39. retrieving revision 1.61.2.13
  40. retrieving revision 1.61.2.14
  41. diff -u -r1.61.2.13 -r1.61.2.14
  42. --- gcc/gcc/cfgrtl.c 2003/12/03 07:00:29 1.61.2.13
  43. +++ gcc/gcc/cfgrtl.c 2004/01/16 11:07:17 1.61.2.14
  44. @@ -688,7 +688,7 @@
  45. if (tmp || !onlyjump_p (insn))
  46. return false;
  47. - if (flow2_completed && JUMP_LABEL (insn)
  48. + if (reload_completed && JUMP_LABEL (insn)
  49. && (table = NEXT_INSN (JUMP_LABEL (insn))) != NULL_RTX
  50. && GET_CODE (table) == JUMP_INSN
  51. && (GET_CODE (PATTERN (table)) == ADDR_VEC