aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>2000-02-11 12:35:57 -0700
committerJeff Law <law@gcc.gnu.org>2000-02-11 12:35:57 -0700
commit144a5f9d4507713f644f15a5ba4795dec3663435 (patch)
tree4f7c1de9d41848cde64412c8651f3224743ee4d4 /gcc/optabs.c
parent2dd8bc01663b0ff2c5dd586102dfe270b145fc45 (diff)
downloadgcc-144a5f9d4507713f644f15a5ba4795dec3663435.zip
gcc-144a5f9d4507713f644f15a5ba4795dec3663435.tar.gz
gcc-144a5f9d4507713f644f15a5ba4795dec3663435.tar.bz2
jump.c (jump_optimize_1): The first operand in a relational can be a CONST_INT.
* jump.c (jump_optimize_1): The first operand in a relational can be a CONST_INT. * optabs.c (emit_conditional_move): Handle relationals which have a known true/false result. From-SVN: r31929
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index df08316..9ce0c92 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -3593,9 +3593,11 @@ emit_conditional_move (target, code, op0, op1, cmode, op2, op3, mode,
= compare_from_rtx (op0, op1, code, unsignedp, cmode, NULL_RTX, 0);
/* ??? Watch for const0_rtx (nop) and const_true_rtx (unconditional)? */
+ /* We can get const0_rtx or const_true_rtx in some circumstances. Just
+ return NULL and let the caller figure out how best to deal with this
+ situation. */
if (GET_CODE (comparison) != code)
- /* This shouldn't happen. */
- abort ();
+ return NULL_RTX;
insn = GEN_FCN (icode) (subtarget, comparison, op2, op3);