summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;