diff options
author | chrbr <chrbr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-19 09:06:53 +0000 |
---|---|---|
committer | chrbr <chrbr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-19 09:06:53 +0000 |
commit | d85dbdb31aa8c5fbbef322cdd9f900e2b57f3356 (patch) | |
tree | a89d5ad3ac4390a00e23584ee2bc15d40c7f3d1a /gcc/convert.c | |
parent | 8fb72e0335fe73c0a749c2c494c61829a228fefb (diff) | |
download | gcc-d85dbdb31aa8c5fbbef322cdd9f900e2b57f3356.tar.gz |
Fix #52283 error: case label does not reduce to an integer constant
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186586 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index 8ff2e9a825a..5e6b09e0654 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -537,7 +537,6 @@ convert_to_integer (tree type, tree expr) else if (outprec >= inprec) { enum tree_code code; - tree tem; /* If the precision of the EXPR's type is K bits and the destination mode has more bits, and the sign is changing, @@ -555,13 +554,7 @@ convert_to_integer (tree type, tree expr) else code = NOP_EXPR; - tem = fold_unary (code, type, expr); - if (tem) - return tem; - - tem = build1 (code, type, expr); - TREE_NO_WARNING (tem) = 1; - return tem; + return fold_build1 (code, type, expr); } /* If TYPE is an enumeral type or a type with a precision less |