aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2017-01-09 14:53:02 -0700
committerJeff Law <law@gcc.gnu.org>2017-01-09 14:53:02 -0700
commitb5acc7a1be7aac0e78ba3e8b556ce207c80ca728 (patch)
treef725e213365dc523e7c666db36ce6bd6b5a436e7 /gcc/tree-ssa-alias.c
parentf4da28a0ab155d5bff5fe400efb2b5459e5429c8 (diff)
downloadgcc-b5acc7a1be7aac0e78ba3e8b556ce207c80ca728.zip
gcc-b5acc7a1be7aac0e78ba3e8b556ce207c80ca728.tar.gz
gcc-b5acc7a1be7aac0e78ba3e8b556ce207c80ca728.tar.bz2
re PR tree-optimization/79007 (gcc.dg/tree-ssa/dse-points-to.c fails starting with r244067)
PR tree-optimization/79007 PR tree-optimization/67955 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be conservative for pt.null when flag_non_call_exceptions is on. From-SVN: r244247
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r--gcc/tree-ssa-alias.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 871fa12..83fa6f5 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -2373,9 +2373,9 @@ same_addr_size_stores_p (tree base1, HOST_WIDE_INT offset1, HOST_WIDE_INT size1,
|| !pt_solution_singleton_or_null_p (&pi->pt, &pt_uid))
return false;
- /* If the solution has a singleton and NULL, then we can not
- be sure that the two stores hit the same address. */
- if (pi->pt.null)
+ /* Be conservative with non-call exceptions when the address might
+ be NULL. */
+ if (flag_non_call_exceptions && pi->pt.null)
return false;
/* Check that ptr points relative to obj. */