PR jit/66700: set TREE_ADDRESSABLE when building an ADDR_EXPR
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 1 Jul 2015 12:50:50 +0000 (12:50 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 1 Jul 2015 12:50:50 +0000 (12:50 +0000)
commite09abfa408597ec644621b6318d735eb0a2d299d
treec3c7765d81997c4efc52f8fad6f56a8d17eb693c
parente807aeaae32697a203928a7900426d011c98dedc
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.

From-SVN: r225248
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]