diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-04-27 09:05:54 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-04-27 09:05:54 +0200 |
commit | ed26db0d7b34fdb38173215f995aa743dee7270c (patch) | |
tree | ffbe4debce160119af6cc77e487ef41296158c7e /gcc/c-typeck.c | |
parent | f48ad048a672a4fe9ce9f6a508c322bdb20af2cc (diff) | |
download | gcc-ed26db0d7b34fdb38173215f995aa743dee7270c.tar.gz |
re PR c/48742 (Internal error in gimplify_expr)
PR c/48742
* c-typeck.c (build_binary_op): Don't wrap arguments if
int_operands is true.
* gcc.c-torture/compile/pr48742.c: New test.
From-SVN: r173012
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r-- | gcc/c-typeck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index fca369cd681..6ae9b4c4f0b 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -10178,7 +10178,7 @@ build_binary_op (location_t location, enum tree_code code, warn_for_sign_compare (location, orig_op0_folded, orig_op1_folded, op0, op1, result_type, resultcode); - if (!in_late_binary_op) + if (!in_late_binary_op && !int_operands) { if (!op0_maybe_const || TREE_CODE (op0) != INTEGER_CST) op0 = c_wrap_maybe_const (op0, !op0_maybe_const); |