diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-02-25 19:34:16 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-02-25 19:34:16 +0000 |
commit | e7c5cd14cb7b01ce10c78af28406674f5fdd6ef1 (patch) | |
tree | 6544d5980d99c931a34717ef50f75396ac08b908 /gcc/convert.c | |
parent | ac319a62104debdb3ec0ee4ce924f67d4eccb7be (diff) | |
download | gcc-e7c5cd14cb7b01ce10c78af28406674f5fdd6ef1.tar.gz |
(convert_to_integer): Delete Feb 19 change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3531 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index 8b3b291b0b1..c67f510188c 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -172,32 +172,6 @@ convert_to_integer (type, expr) switch (ex_form) { -#if 0 - case INTEGER_CST: - if (TREE_UNSIGNED (type)) - { - if (TREE_INT_CST_LOW (expr) >> outprec) - warning ("integer constant truncated"); - } - else - { - /* if the sign bit of the low-order part isn't replicated - through the entire high part, we have overflow */ - int sign = TREE_INT_CST_LOW (expr) & (1 << (outprec - 1)); - if (!sign) /* lower part positive */ - { - if (TREE_INT_CST_LOW (expr) >> outprec) - warning ("integer constant truncated"); - } - else - { - if ((TREE_INT_CST_LOW (expr) >> outprec) + 1) - warning ("integer constant truncated"); - } - } - break; -#endif /* 0 */ - case RSHIFT_EXPR: /* We can pass truncation down through right shifting when the shift count is a nonpositive constant. */ |