summaryrefslogtreecommitdiff
path: root/gcc/lra-constraints.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-03-14 22:19:32 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-03-14 22:19:32 +0000
commit2b3c633feb649a11c0b4ac46acdff4fad2f021b3 (patch)
tree64d8494726d66090c71e80c4e8420bdc06887ae6 /gcc/lra-constraints.c
parent026f213783364bd6f4ac0d274bce9a8c95a629ed (diff)
downloadgcc-2b3c633feb649a11c0b4ac46acdff4fad2f021b3.tar.gz
PR middle-end/70219
* lra-constraints.c (delete_move_and_clobber): Change assertion to also allow dregno == 0. * gcc.dg/pr70219.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234201 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r--gcc/lra-constraints.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
index 171ed657c85..ced9e12b0f1 100644
--- a/gcc/lra-constraints.c
+++ b/gcc/lra-constraints.c
@@ -5868,7 +5868,7 @@ delete_move_and_clobber (rtx_insn *insn, int dregno)
rtx_insn *prev_insn = PREV_INSN (insn);
lra_set_insn_deleted (insn);
- lra_assert (dregno > 0);
+ lra_assert (dregno >= 0);
if (prev_insn != NULL && NONDEBUG_INSN_P (prev_insn)
&& GET_CODE (PATTERN (prev_insn)) == CLOBBER
&& dregno == get_regno (XEXP (PATTERN (prev_insn), 0)))