From 5154c2c35c32af9692c702aa2d88b283019be8b4 Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Fri, 10 Oct 2014 08:27:52 +0000 Subject: [PATCH] * lra-assigns.c (assign_by_spills): Fix thinko in previous change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216060 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/lra-assigns.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/lra-assigns.c b/gcc/lra-assigns.c index a6745fc..6df2d63 100644 --- a/gcc/lra-assigns.c +++ b/gcc/lra-assigns.c @@ -1289,6 +1289,7 @@ assign_by_spills (void) /* We did not assign hard regs to reload pseudos after two iterations. Either it's an asm and something is wrong with the constraints, or we have run out of spill registers; error out in either case. */ + bool asm_p = false; bitmap_head failed_reload_insns; bitmap_initialize (&failed_reload_insns, ®_obstack); @@ -1309,6 +1310,7 @@ assign_by_spills (void) insn = lra_insn_recog_data[u]->insn; if (asm_noperands (PATTERN (insn)) >= 0) { + asm_p = true; error_for_asm (insn, "% operand has impossible constraints"); /* Avoid further trouble with this insn. @@ -1329,7 +1331,7 @@ assign_by_spills (void) lra_set_insn_deleted (insn); } } - else + else if (!asm_p) { error ("unable to find a register to spill"); fatal_insn ("this is the insn:", insn); -- 2.7.4