diff options
author | Richard Henderson <rth@cygnus.com> | 2000-01-20 14:08:29 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-01-20 14:08:29 -0800 |
commit | 7c22ee2b1803ca9de8c5bd1ef3ab6ccb53d68c9a (patch) | |
tree | 9aedd35be4212563f372a6e5048e189908db488d | |
parent | 7e7cf28ad269a9331f24ebdd4c34297e2951e567 (diff) | |
download | gcc-7c22ee2b1803ca9de8c5bd1ef3ab6ccb53d68c9a.zip gcc-7c22ee2b1803ca9de8c5bd1ef3ab6ccb53d68c9a.tar.gz gcc-7c22ee2b1803ca9de8c5bd1ef3ab6ccb53d68c9a.tar.bz2 |
* jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0.
From-SVN: r31546
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/jump.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 310ddf5..373d606 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-01-20 Richard Henderson <rth@cygnus.com> + + * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0. + 2000-01-20 Zack Weinberg <zack@wolery.cumb.org> * Makefile.in (fixinc.sh): Depend on specs. @@ -337,6 +337,9 @@ jump_optimize_1 (f, cross_jump, noop_moves, after_regscan, mark_labels_only) if (nlabel != JUMP_LABEL (insn)) changed |= redirect_jump (insn, nlabel); + if (! optimize) + continue; + /* If a dispatch table always goes to the same place, get rid of it and replace the insn that uses it. */ @@ -373,9 +376,6 @@ jump_optimize_1 (f, cross_jump, noop_moves, after_regscan, mark_labels_only) } } - if (! optimize) - continue; - /* If a jump references the end of the function, try to turn it into a RETURN insn, possibly a conditional one. */ if (JUMP_LABEL (insn) != 0 |