summaryrefslogtreecommitdiff
path: root/gcc/c-typeck.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-11-19 18:32:57 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-11-19 18:32:57 +0000
commit5386338c2ce9a7f68c270166b4ac5bd2ffe5af05 (patch)
tree9151e4c17120304997a7c6d34c179af7fb0dcd7b /gcc/c-typeck.c
parent7a336abaa12e18d6f3e36e29c57bd7a2665a33f7 (diff)
downloadgcc-5386338c2ce9a7f68c270166b4ac5bd2ffe5af05.tar.gz
re PR c/46547 (internal compiler error when converting a complex to a bool)
PR c/46547 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h. * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c. c-family: * c-common.c (in_late_binary_op): Define. (c_common_truthvalue_conversion): Check in_late_binary_op before calling c_save_expr. * c-common.h (in_late_binary_op): Declare. testsuite: * gcc.c-torture/compile/pr46547-1.c: New test. From-SVN: r166951
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r--gcc/c-typeck.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 9aca720fd71..09e9ca73039 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -51,13 +51,6 @@ enum impl_conv {
ic_return
};
-/* Whether we are building a boolean conversion inside
- convert_for_assignment, or some other late binary operation. If
- build_binary_op is called (from code shared with C++) in this case,
- then the operands have already been folded and the result will not
- be folded again, so C_MAYBE_CONST_EXPR should not be generated. */
-bool in_late_binary_op;
-
/* The level of nesting inside "__alignof__". */
int in_alignof;