tmmark: verify_ssa failed [PR95569]
authorQian Chao <qianchao9@huawei.com>
Wed, 10 Jun 2020 08:46:56 +0000 (04:46 -0400)
committerMartin Liska <mliska@suse.cz>
Wed, 10 Jun 2020 09:05:06 +0000 (11:05 +0200)
commit6d9ef0621f8e1aaafd458dba1a8b5476e655b479
treed635f64b88d771565d485ed2b07af0d11dc0f929
parentdc6d15eaa23cbae1468a6ef92371b1c856c14819
tmmark: verify_ssa failed [PR95569]

This patch fixes a latent bug exposed by eb72dc663e9070b281be83a80f6f838a3a878822.
See the discussion on the bug for details.

Bootstrapped and regtested on aarch64-linux-gnu. No new fails introduced.

2020-06-10  Qian Chao  <qianchao9@huawei.com>

gcc/ChangeLog:

PR tree-optimization/95569
* trans-mem.c (expand_assign_tm): Ensure that rtmp is marked TREE_ADDRESSABLE.

gcc/testsuite/ChangeLog:

PR tree-optimization/95569
* gcc.dg/tm/pr95569.c: New test.
gcc/testsuite/gcc.dg/tm/pr95569.c [new file with mode: 0644]
gcc/trans-mem.c