https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68143
--- Comment #4 from ktkachov at gcc dot gnu.org --- Author: ktkachov Date: Wed Nov 18 13:18:47 2015 New Revision: 230544 URL: https://gcc.gnu.org/viewcvs?rev=230544&root=gcc&view=rev Log: [ARM] PR 68143 Properly update memory offsets when expanding setmem Backport from mainline 2015-11-17 Kyrylo Tkachov <kyrylo.tkac...@arm.com> PR target/68143 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of offset from dstbase and use it appropriately in adjust_automodify_address. (arm_block_set_aligned_vect): Likewise. * gcc.c-torture/execute/pr68143_1.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr68143_1.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/config/arm/arm.c branches/gcc-5-branch/gcc/testsuite/ChangeLog