PR tree-optimization/78162: Reject negative offsets in store merging early
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 2 Nov 2016 09:25:22 +0000 (09:25 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 2 Nov 2016 09:25:22 +0000 (09:25 +0000)
commit63e523d6f0853765adc332c7a68a8e6b16971d6b
treeaedc40b214eadb2e102ee0d7a959c8b882146450
parent04ddfe064b58a9ce69a332942d51722dfb13db66
PR tree-optimization/78162: Reject negative offsets in store merging early

PR tree-optimization/78162
* gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
as invalid.

* gcc.c-torture/compile/pr78162.c: New test.

From-SVN: r241778
gcc/ChangeLog
gcc/gimple-ssa-store-merging.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr78162.c [new file with mode: 0644]