aboutsummaryrefslogtreecommitdiff
path: root/gcc/lra-assigns.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2014-10-10 08:27:52 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-10-10 08:27:52 +0000
commit327b20f5ab2b008af5dec106844b5fde87aeabf6 (patch)
tree9f9e2a5257213ba3b2b930076c8b84a59b4f9f3e /gcc/lra-assigns.c
parentbdf13188c06c3109d64368a865954816fafae567 (diff)
downloadgcc-327b20f5ab2b008af5dec106844b5fde87aeabf6.zip
gcc-327b20f5ab2b008af5dec106844b5fde87aeabf6.tar.gz
gcc-327b20f5ab2b008af5dec106844b5fde87aeabf6.tar.bz2
* lra-assigns.c (assign_by_spills): Fix thinko in previous change.
From-SVN: r216060
Diffstat (limited to 'gcc/lra-assigns.c')
-rw-r--r--gcc/lra-assigns.c4
1 files changed, 3 insertions, 1 deletions
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, &reg_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,
"%<asm%> 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);