aboutsummaryrefslogtreecommitdiff
path: root/gcc/convert.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-02-18 00:56:54 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2005-02-18 00:56:54 +0100
commit0948e3921d0e0e19928f59f22e241b9648233e3b (patch)
treef4c298b83bfc6b9caea7a518fe9dcb10b44535a7 /gcc/convert.c
parent582035999026399da5ccc2d10d8e0a7691040251 (diff)
downloadgcc-0948e3921d0e0e19928f59f22e241b9648233e3b.zip
gcc-0948e3921d0e0e19928f59f22e241b9648233e3b.tar.gz
gcc-0948e3921d0e0e19928f59f22e241b9648233e3b.tar.bz2
re PR c++/20023 (internal compiler error: Segmentation fault)
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. From-SVN: r95208
Diffstat (limited to 'gcc/convert.c')
-rw-r--r--gcc/convert.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/convert.c b/gcc/convert.c
index c48b242..f900ace 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);