diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2024-07-22 18:05:26 +0200 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:45 +0200 |
commit | d9c73e23ed096c8c786f2206df29d8ea3ab54038 (patch) | |
tree | bce19a167e86a541ce2d4826db40336deaabc363 /gcc/cp/tree.cc | |
parent | 0b5b178caea0417ff23d0609b1416e3f3e4f6689 (diff) | |
download | gcc-d9c73e23ed096c8c786f2206df29d8ea3ab54038.zip gcc-d9c73e23ed096c8c786f2206df29d8ea3ab54038.tar.gz gcc-d9c73e23ed096c8c786f2206df29d8ea3ab54038.tar.bz2 |
Fix accounting of offsets in unadjusted_ptr_and_unit_offset
unadjusted_ptr_and_unit_offset accidentally throws away the offset computed by
get_addr_base_and_unit_offset. Instead of passing extra_offset it passes offset.
PR ipa/114207
gcc/ChangeLog:
* ipa-prop.cc (unadjusted_ptr_and_unit_offset): Fix accounting of offsets in ADDR_EXPR.
gcc/testsuite/ChangeLog:
* gcc.c-torture/execute/pr114207.c: New test.
Diffstat (limited to 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions