]> gcc.gnu.org Git - gcc.git/commit
Fix accounting of offsets in unadjusted_ptr_and_unit_offset
authorJan Hubicka <hubicka@ucw.cz>
Mon, 22 Jul 2024 16:05:26 +0000 (18:05 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Mon, 22 Jul 2024 16:05:26 +0000 (18:05 +0200)
commit391f46f10b0586c074014de82efe76787739bb0c
tree3996c03ab4894fdb01ffa6b5d77315fd4dbdf1e3
parent0d19fbc7b0760ce665fa6a88cd40cfa0311358d7
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.
gcc/ipa-prop.cc
gcc/testsuite/gcc.c-torture/execute/pr114207.c [new file with mode: 0644]
This page took 0.064364 seconds and 6 git commands to generate.