aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>2000-11-30 05:49:49 +0000
committerJeff Law <law@gcc.gnu.org>2000-11-29 22:49:49 -0700
commit31a7659bfda8246f1ac518cab9fe920842de292f (patch)
treed913020ebd72b77fb7d37908a6890549fbd33485 /gcc/expr.c
parent9f1bbeaa4948ab793852e247462ae601a64243f7 (diff)
downloadgcc-31a7659bfda8246f1ac518cab9fe920842de292f.zip
gcc-31a7659bfda8246f1ac518cab9fe920842de292f.tar.gz
gcc-31a7659bfda8246f1ac518cab9fe920842de292f.tar.bz2
* expr.c (do_compare_and_jump): Add missing TYPE_MODE in statement.
From-SVN: r37862
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index f924d53..3a8136f 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -10199,7 +10199,8 @@ do_compare_and_jump (exp, signed_code, unsigned_code, if_false_label,
if (TREE_CODE (TREE_OPERAND (exp, 0)) == INTEGER_CST
&& (TREE_CODE (TREE_OPERAND (exp, 1)) != INTEGER_CST
|| (GET_MODE_BITSIZE (mode)
- > GET_MODE_BITSIZE (TREE_TYPE (TREE_OPERAND (exp, 1))))))
+ > GET_MODE_BITSIZE (TYPE_MODE (TREE_TYPE (TREE_OPERAND (exp,
+ 1)))))))
{
/* op0 might have been replaced by promoted constant, in which
case the type of second argument should be used. */