aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.cc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2024-07-22 18:05:26 +0200
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:05:45 +0200
commitd9c73e23ed096c8c786f2206df29d8ea3ab54038 (patch)
treebce19a167e86a541ce2d4826db40336deaabc363 /gcc/cp/tree.cc
parent0b5b178caea0417ff23d0609b1416e3f3e4f6689 (diff)
downloadgcc-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