From be3d27d60c60bebc572a0d2001dce5ee8c35c75e Mon Sep 17 00:00:00 2001 From: Christian Iseli Date: Wed, 17 Dec 1997 00:12:32 +0100 Subject: [PATCH] * combine.c (force_to_mode): return immediately if operand is a CLOBBER. From-SVN: r17121 --- gcc/ChangeLog | 4 ++++ gcc/combine.c | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 64ba2e69e0d..8ebc8449f91 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed Dec 17 00:13:48 1997 Christian Iseli + + * combine.c (force_to_mode): return immediately if operand is a CLOBBER. + Tue Dec 16 23:44:54 1997 Manfred Hollstein * fixincludes (size_t): Add support for Motorola's stdlib.h diff --git a/gcc/combine.c b/gcc/combine.c index 339c94943cd..a17c999a85b 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -6064,8 +6064,11 @@ force_to_mode (x, mode, mask, reg, just_select) /* If this is a CALL or ASM_OPERANDS, don't do anything. Some of the code below will do the wrong thing since the mode of such an - expression is VOIDmode. */ - if (code == CALL || code == ASM_OPERANDS) + expression is VOIDmode. + + Also do nothing if X is a CLOBBER; this can happen if X was + the return value from a call to gen_lowpart_for_combine. */ + if (code == CALL || code == ASM_OPERANDS || code == CLOBBER) return x; /* We want to perform the operation is its present mode unless we know -- 2.30.2