summaryrefslogtreecommitdiff
path: root/gcc/convert.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-07-29 06:30:20 +0000
committerRichard Stallman <rms@gnu.org>1993-07-29 06:30:20 +0000
commitd283912a4b172a6e45f13e7b2748e25335106773 (patch)
tree6dac1fed272b76fc6e9f2ec8b7602bbbf07888e8 /gcc/convert.c
parent1c5334be7d63e92707a77bef001cc6169ece62ce (diff)
downloadgcc-d283912a4b172a6e45f13e7b2748e25335106773.tar.gz
(convert_to_integer): Don't pass truncate into ABS_EXPR.
From-SVN: r5037
Diffstat (limited to 'gcc/convert.c')
-rw-r--r--gcc/convert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/convert.c b/gcc/convert.c
index d073ac3ee62..032bb516899 100644
--- a/gcc/convert.c
+++ b/gcc/convert.c
@@ -291,7 +291,8 @@ convert_to_integer (type, expr)
case NEGATE_EXPR:
case BIT_NOT_EXPR:
- case ABS_EXPR:
+ /* This is not correct for ABS_EXPR,
+ since we must test the sign before truncation. */
{
register tree typex = type;