aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-math-opts.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-05-24 14:40:35 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-05-24 14:40:35 +0000
commitb556ea3b4653c99c2c8b5ecce5565f1b4963078b (patch)
tree957266a24c0c2729967c0120d5dff5449effa616 /gcc/tree-ssa-math-opts.c
parente5328f5dc2bc46eedf1d367de0bd751d43f1311d (diff)
downloadgcc-b556ea3b4653c99c2c8b5ecce5565f1b4963078b.zip
gcc-b556ea3b4653c99c2c8b5ecce5565f1b4963078b.tar.gz
gcc-b556ea3b4653c99c2c8b5ecce5565f1b4963078b.tar.bz2
re PR tree-optimization/71240 (ICE on valid code at -O2 and above on x86_64-linux-gnu: verify_gimple failed)
2016-05-24 Richard Biener <rguenther@suse.de> PR tree-optimization/71240 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source has integral type. * gcc.dg/optimize-bswapsi-5.c: New testcase. From-SVN: r236644
Diffstat (limited to 'gcc/tree-ssa-math-opts.c')
-rw-r--r--gcc/tree-ssa-math-opts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c
index 81688cd..0b0c866 100644
--- a/gcc/tree-ssa-math-opts.c
+++ b/gcc/tree-ssa-math-opts.c
@@ -2051,6 +2051,9 @@ init_symbolic_number (struct symbolic_number *n, tree src)
{
int size;
+ if (! INTEGRAL_TYPE_P (TREE_TYPE (src)))
+ return false;
+
n->base_addr = n->offset = n->alias_set = n->vuse = NULL_TREE;
/* Set up the symbolic number N by setting each byte to a value between 1 and