diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-07-29 06:30:20 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-07-29 06:30:20 +0000 |
commit | e291e0cfb28fc4484cb1bf3358252a8ac8e01710 (patch) | |
tree | 6dac1fed272b76fc6e9f2ec8b7602bbbf07888e8 /gcc/convert.c | |
parent | 19cd9644e143711e3ba4a3d7f73fee506161d32a (diff) | |
download | gcc-e291e0cfb28fc4484cb1bf3358252a8ac8e01710.tar.gz |
(convert_to_integer): Don't pass truncate into ABS_EXPR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5037 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 3 |
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; |