diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-17 23:56:54 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-17 23:56:54 +0000 |
commit | 728d11f05479ab60992fffca74b3add274f168f8 (patch) | |
tree | f4c298b83bfc6b9caea7a518fe9dcb10b44535a7 /gcc/convert.c | |
parent | 06bf91cbff74301a0a7b0c75472caa7002a00b78 (diff) | |
download | gcc-728d11f05479ab60992fffca74b3add274f168f8.tar.gz |
PR c++/20023
PR tree-optimization/20009
* convert.c (convert_to_integer): Revert 2005-02-16 change.
* gcc.c-torture/compile/20050217-1.c: New test.
* g++.dg/opt/switch3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95208 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index c48b242b655..f900ace21e4 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -387,8 +387,7 @@ convert_to_integer (tree type, tree expr) expr = integer_zero_node; else expr = fold (build1 (CONVERT_EXPR, - lang_hooks.types.type_for_size - (POINTER_SIZE, TYPE_UNSIGNED (type)), + lang_hooks.types.type_for_size (POINTER_SIZE, 0), expr)); return convert_to_integer (type, expr); |