https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114207
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jan Hubicka <hubi...@gcc.gnu.org>: https://gcc.gnu.org/g:391f46f10b0586c074014de82efe76787739bb0c commit r15-2201-g391f46f10b0586c074014de82efe76787739bb0c Author: Jan Hubicka <hubi...@ucw.cz> Date: Mon Jul 22 18:05:26 2024 +0200 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.