re PR rtl-optimization/83723 (ICE: in gen_rtx_SUBREG, at emit-rtl.c:1010)
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Feb 2018 09:04:00 +0000 (10:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Feb 2018 09:04:00 +0000 (10:04 +0100)
commit33006d53fd3adf2baae85b625e3ec99908b7a31c
treed5f0990f699df7b85a6e9cdea483db0c2c48652a
parentc9b34e397c61aa6aec556189bfeac329dee052a6
re PR rtl-optimization/83723 (ICE: in gen_rtx_SUBREG, at emit-rtl.c:1010)

PR rtl-optimization/83723
* lra-int.h (lra_substitute_pseudo): Add DEBUG_P argument.
* lra.c (lra_substitute_pseudo): Likewise.  If true, use
gen_rtx_raw_SUBREG instead of gen_rtx_SUBREG.  Pass DEBUG_P to
recursive calls.
(lra_substitute_pseudo_within_insn): Adjust lra_substitute_pseudo
callers.
* lra-constraints.c (inherit_reload_reg, split_reg): Likewise.

* gcc.dg/pr83723.c: New test.

From-SVN: r257725
gcc/ChangeLog
gcc/lra-constraints.c
gcc/lra-int.h
gcc/lra.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83723.c [new file with mode: 0644]