re PR target/48551 (Following source code crashes the c++ compiler on coldfire platform.)
authorJeff Law <law@redhat.com>
Mon, 21 Nov 2016 05:29:36 +0000 (22:29 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 21 Nov 2016 05:29:36 +0000 (22:29 -0700)
commitfe12d76c19ad3eef5a4ac555a519bc14f09d7326
tree0b5b40035eedaf847288f81a5c5be3bd4847c5e3
parent29c90a3c28a7917023477648f0c88aa273e7510e
re PR target/48551 (Following source code crashes the c++ compiler on coldfire platform.)

2016-11-20  Jeff Law  <law@redhat.com>

PR target/48551
* reload.h (struct target_reload): Make x_double_reg_address_ok
be per-mode rather.
* reload.c (find_reloads_address): Check if double_reg_address_ok
is true for the mode of the memory reference.
* reload1.c (init_reload): Initialize double_reg_address_ok for
each mode.

PR target/48551
* gcc.target/m68k/pr48551.c: New test.

From-SVN: r242648
gcc/ChangeLog
gcc/reload.c
gcc/reload.h
gcc/reload1.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/m68k/pr48551.c [new file with mode: 0644]