From: Richard Kenner Date: Tue, 13 Feb 1996 13:15:42 +0000 (-0500) Subject: (jump_optimize): Fix potential infinite loop. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e3908374e23ea2049e6229bcbb33fc116b57419;p=gcc.git (jump_optimize): Fix potential infinite loop. From-SVN: r11253 --- diff --git a/gcc/jump.c b/gcc/jump.c index 2fd8be52cb2..f668a472bc8 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1,5 +1,5 @@ /* Optimize jump instructions, for GNU compiler. - Copyright (C) 1987, 88, 89, 91-94, 1995 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 91-95, 1996 Free Software Foundation, Inc.b This file is part of GNU CC. @@ -1505,7 +1505,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan) else if (ultimate && GET_CODE (ultimate) != RETURN) ultimate = XEXP (ultimate, 0); - if (ultimate) + if (ultimate && JUMP_LABEL(insn) != ultimate) changed |= redirect_jump (insn, ultimate); } }