From 7c22ee2b1803ca9de8c5bd1ef3ab6ccb53d68c9a Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 20 Jan 2000 14:08:29 -0800 Subject: * jump.c (jump_optimize_1): Don't do addr_vec optimizations at -O0. From-SVN: r31546 --- gcc/jump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/jump.c') 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 -- cgit v1.1