summaryrefslogtreecommitdiff
path: root/intl/configure.ac
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2020-04-16 11:04:41 +0200
committerMartin Jambor <mjambor@suse.cz>2020-04-16 11:05:17 +0200
commitbd87b1fddbbe7d424671ebf81c96e12d748fafc7 (patch)
tree743bda4ee322dcd48ffeb039655ef16600b600c7 /intl/configure.ac
parent9303fe0714c6cc2ff01bcfddd554d7d5057c32bd (diff)
downloadgcc-bd87b1fddbbe7d424671ebf81c96e12d748fafc7.tar.gz
sra: Fix access verification (PR 94598)
get_ref_base_and_extent recognizes ARRAY_REFs with variable index but into arrays of length one as constant offset accesses. However, max_size in such cases is extended to span the whole element. This confuses SRA verification when SRA also builds its (total scalarization) access structures to describe fields under such array - get_ref_base_and_extent returns different size and max_size for them. Fixed by not performing the check for total scalarization accesses. The subsequent check then had to be changed to use size and not max_size too, which meant it has to be skipped when the access structure describes a genuine variable array access. Bootstrapped and tested on x86_64-linux. 2020-04-16 Martin Jambor <mjambor@suse.cz> PR tree-optimization/94598 * tree-sra.c (verify_sra_access_forest): Fix verification of total scalarization accesses under access to one-element arrays. testsuite/ * gcc.dg/tree-ssa/pr94598.c: New test.
Diffstat (limited to 'intl/configure.ac')
0 files changed, 0 insertions, 0 deletions