convert.c (convert_to_integer): Don't pass the truncation down when the target type...
authorEric Botcazou <ebotcazou@multimania.com>
Sat, 15 Jun 2002 00:40:49 +0000 (00:40 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 15 Jun 2002 00:40:49 +0000 (17:40 -0700)
commit43e4a9d87010344f9ba60c22983b6d378736fca3
treefd51ff69789e0093e1ae97e5bbca49e30ec16d37
parentfa4a5557dd8f2e4a57bd30bfdf55115c302fc189
convert.c (convert_to_integer): Don't pass the truncation down when the target type is signed.

* convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
the truncation down when the target type is signed.
[trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
* fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
the conversion if the target type is a smaller type.

From-SVN: r54627
gcc/ChangeLog
gcc/convert.c
gcc/fold-const.c