From: rth Date: Thu, 20 Jan 2000 22:08:29 +0000 (+0000) Subject: * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0. X-Git-Tag: upstream/4.9.2~103611 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=574a2ea5dcc55d0b5d1895827b04146fa1825c24;p=platform%2Fupstream%2Flinaro-gcc.git * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31546 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 + + * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0. + 2000-01-20 Zack Weinberg * Makefile.in (fixinc.sh): Depend on specs. diff --git a/gcc/jump.c b/gcc/jump.c index 9028be1..bbd04da 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -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