aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gnu.org>1993-10-08 00:48:54 +0000
committerTorbjorn Granlund <tege@gnu.org>1993-10-08 00:48:54 +0000
commit41f2002ce1e733cb207dfb751f068a1af82f6a1c (patch)
treea9811d63cf16e6e1bff6cef726dca9189ff2efff
parentd1b4b7c18e68304512b61faf2beaa6077d19f867 (diff)
downloadgcc-41f2002ce1e733cb207dfb751f068a1af82f6a1c.zip
gcc-41f2002ce1e733cb207dfb751f068a1af82f6a1c.tar.gz
gcc-41f2002ce1e733cb207dfb751f068a1af82f6a1c.tar.bz2
(build_binary_op): For *_DIV_EXPR, set shorten based on orig_op0.
From-SVN: r5669
-rw-r--r--gcc/c-typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 05a4e02..096c132 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -1943,7 +1943,7 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
else
/* When dividing two signed integers, you have to promote to int.
E.g. (short) -32868 / (short) -1 doesn't fit in a short. */
- shorten = TREE_UNSIGNED (op0);
+ shorten = TREE_UNSIGNED (orig_op0);
common = 1;
}
break;