diff options
author | Richard Biener <rguenther@suse.de> | 2022-09-09 12:06:38 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-09-09 14:31:35 +0200 |
commit | a8b0b13da7379feb31950a9d2ad74b98a29c547f (patch) | |
tree | 5bfbc119e5a4fa89046fdb2cf4e6ac1545b1fdbe /gcc/fortran | |
parent | 26a1f4fcb264d110708483815c8c8d7bb4ff6788 (diff) | |
download | gcc-a8b0b13da7379feb31950a9d2ad74b98a29c547f.zip gcc-a8b0b13da7379feb31950a9d2ad74b98a29c547f.tar.gz gcc-a8b0b13da7379feb31950a9d2ad74b98a29c547f.tar.bz2 |
tree-optimization/106722 - avoid invalid pointer association in predcom
When predictive commoning builds a reference for iteration N it
prematurely associates a constant offset into the MEM_REF offset
operand which can be invalid if the base pointer then points
outside of an object which alias-analysis does not consider valid.
PR tree-optimization/106722
* tree-predcom.cc (ref_at_iteration): Do not associate the
constant part of the offset into the MEM_REF offset
operand, across a non-zero offset.
* gcc.dg/torture/pr106892.c: New testcase.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions