re PR target/68538 (ICE in gen_reg_rtx, at emit-rtl.c:1027 when cross-compiling for...
authorJeff Law <law@redhat.com>
Mon, 21 Nov 2016 23:24:13 +0000 (16:24 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 21 Nov 2016 23:24:13 +0000 (16:24 -0700)
commit3ca23cdbf89009deb2da798e1db5b7b1d62df1e2
tree2923d666e7f58a2e7174d0c947ce525fa254e71f
parentd8fc036893ff96464d5dd5767a97348a9a4f327c
re PR target/68538 (ICE in gen_reg_rtx, at emit-rtl.c:1027 when cross-compiling for cris-linux-gnu target)

PR target/68538
* config/cris/cris.md: Don't call copy_to_mode_reg unless
can_create_pseudo_p is true.

        PR target/68538
* gcc.c-torture/compile/pr68538.c: New test.

From-SVN: r242682
gcc/ChangeLog
gcc/config/cris/cris.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr68538.c [new file with mode: 0644]