diff options
author | Richard Biener <rguenther@suse.de> | 2023-12-13 09:05:59 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-12-13 10:06:30 +0100 |
commit | 4dfc6bcabb5a040417e60cb8072e562e25974917 (patch) | |
tree | e2f4fe693d9b9e910bd93d918c0b75e0060d26c1 /gcc/fortran | |
parent | 93db32a4146afd2a6d90410691351a56768167c9 (diff) | |
download | gcc-4dfc6bcabb5a040417e60cb8072e562e25974917.zip gcc-4dfc6bcabb5a040417e60cb8072e562e25974917.tar.gz gcc-4dfc6bcabb5a040417e60cb8072e562e25974917.tar.bz2 |
Avoid losing MEM_REF offset in MEM_EXPR adjustment for stack slot sharing
When investigating PR111591 with respect to TBAA and stack slot sharing
I noticed we're eventually scrapping a [TARGET_]MEM_REF offset when
rewriting the VAR_DECL base of the MEM_EXPR to use a pointer to the
partition instead. The following makes sure to preserve that.
* emit-rtl.cc (set_mem_attributes_minus_bitpos): Preserve
the offset when rewriting an exising MEM_REF base for
stack slot sharing.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions