aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-04-21 11:52:50 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-04-21 11:52:50 +0000
commitaef4aab0ccd07040e6471dfce538e2e8338a9ff8 (patch)
treeefd836847104ecc78e73563b3330b130e8c433ba /gcc/fold-const.c
parent2359e571cd71026167931216e730129d53244dd1 (diff)
downloadgcc-aef4aab0ccd07040e6471dfce538e2e8338a9ff8.zip
gcc-aef4aab0ccd07040e6471dfce538e2e8338a9ff8.tar.gz
gcc-aef4aab0ccd07040e6471dfce538e2e8338a9ff8.tar.bz2
re PR middle-end/70747 (ICE on valid code on x86_64-linux-gnu: verify_gimple failed)
2016-04-21 Richard Biener <rguenther@suse.de> PR middle-end/70747 * fold-const.c (fold_comparison): Return properly typed constant boolean. * gcc.dg/pr70747.c: New testcase. From-SVN: r235335
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 0f4bf7e..9514c71 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -8676,11 +8676,11 @@ fold_comparison (location_t loc, enum tree_code code, tree type,
case EQ_EXPR:
case LE_EXPR:
case LT_EXPR:
- return boolean_false_node;
+ return constant_boolean_node (false, type);
case GE_EXPR:
case GT_EXPR:
case NE_EXPR:
- return boolean_true_node;
+ return constant_boolean_node (true, type);
default:
gcc_unreachable ();
}