[ARM] PR target/78694: Avoid invalid RTL sharing in minipool code
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 20 Dec 2016 09:39:44 +0000 (09:39 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 20 Dec 2016 09:39:44 +0000 (09:39 +0000)
commit2a1d4076c463ea534209b5e1b53089521321133b
treee93a241a140f1bdce70c906fd42167dc1085b4e2
parent48e512b6984ab25185bd1239a042ab0e8fb3f95c
[ARM] PR target/78694: Avoid invalid RTL sharing in minipool code

PR target/78694
* config/arm/arm.c (dump_minipool): Copy mp->value before emitting it
in the minipool to avoid invalid RTL sharing.

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

From-SVN: r243820
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr78694.c [new file with mode: 0644]