summaryrefslogtreecommitdiff
path: root/gcc/libgcc2.h
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-21 03:30:08 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-21 03:30:08 +0000
commitce04dcdc8498b5429c2da2338a8912ff3914d19f (patch)
tree64a437ac2c7bf9dae4641ceb3ef591d6abc0a7e6 /gcc/libgcc2.h
parente35976b114cde73f3131da32a9bbbc6da1b13eb8 (diff)
downloadgcc-ce04dcdc8498b5429c2da2338a8912ff3914d19f.tar.gz
PR middle-end/20539
* fold-const.c (fold_binary): Fix type mismatch between TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types. (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue for non-truth-valued expressions. * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK and FUNCTION_DECL in the main switch. <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: When changing the result type of these tree nodes, we also need to convert their operands to match. <TRUTH_NOT_EXPR>: Likewise. * gcc.c-torture/compile/pr13066-1.c: New test case. * gcc.c-torture/compile/pr20539-1.c: Likewise. * g++.dg/opt/pr13066-1.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96777 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcc2.h')
0 files changed, 0 insertions, 0 deletions