aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-nested.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2020-10-21 20:11:16 -0400
committerAndrew MacLeod <amacleod@redhat.com>2020-10-21 20:15:28 -0400
commit966fdb2e12c0347aa3f9efaf5f4e1cd8237fa024 (patch)
tree75e85ac0b6215c99666bc3368d246c2318e5ba09 /gcc/tree-nested.c
parent0f41b5e02fa47db2080b77e4e1f7cd3305457c05 (diff)
downloadgcc-966fdb2e12c0347aa3f9efaf5f4e1cd8237fa024.zip
gcc-966fdb2e12c0347aa3f9efaf5f4e1cd8237fa024.tar.gz
gcc-966fdb2e12c0347aa3f9efaf5f4e1cd8237fa024.tar.bz2
Handle a_2= &b properly in range calculations.
when processing assignments, we were using the type of b instead of type of &b when computing a range. This was usually filtered out by FRE. turning it off exposed it. gcc/ PR tree-optimization/97520 * gimple-range.cc (range_of_non_trivial_assignment): Handle x = &a by returning a non-zero range. gcc/testsuite/ * gcc.dg/pr97520.c: New.
Diffstat (limited to 'gcc/tree-nested.c')
0 files changed, 0 insertions, 0 deletions