PR jit/66700: set TREE_ADDRESSABLE when building an ADDR_EXPR
commitf410e1f5b44007c6cf6609df0afc16e7dcfeabd2
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jul 2015 12:50:50 +0000 (1 12:50 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jul 2015 12:50:50 +0000 (1 12:50 +0000)
treec3c7765d81997c4efc52f8fad6f56a8d17eb693c
parenteb2d3e4a67c699257e42280e6bf800b8a92ffad7
PR jit/66700: set TREE_ADDRESSABLE when building an ADDR_EXPR

gcc/jit/ChangeLog:
PR jit/66700
* jit-playback.c (jit_mark_addressable): New function.
(gcc::jit::playback::lvalue::get_address): Call
jit_mark_addressable on the underlying tree.

gcc/testsuite/ChangeLog:
PR jit/66700
* jit.dg/all-non-failing-tests.h: Add
test-pr66700-observing-write-through-ptr.c.
* jit.dg/test-pr66700-observing-write-through-ptr.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225248 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/jit/ChangeLog
gcc/jit/jit-playback.c
gcc/testsuite/ChangeLog
gcc/testsuite/jit.dg/all-non-failing-tests.h
gcc/testsuite/jit.dg/test-pr66700-observing-write-through-ptr.c [new file with mode: 0644]