aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorDavid Wohlferd <dw@LimeGreenSocks.com>2014-12-08 21:58:23 +0000
committerJeff Law <law@gcc.gnu.org>2014-12-08 14:58:23 -0700
commitc475c36cf6ed17727379ed04418557fcdcc9c0ed (patch)
tree6d302eddb7cb68a41a9ab4eb404e171547d59b58 /gcc/cfgexpand.c
parenteecea65c8bc8de3a4826f62af23ac28515287c90 (diff)
downloadgcc-c475c36cf6ed17727379ed04418557fcdcc9c0ed.zip
gcc-c475c36cf6ed17727379ed04418557fcdcc9c0ed.tar.gz
gcc-c475c36cf6ed17727379ed04418557fcdcc9c0ed.tar.bz2
re PR inline-asm/61692 (ICE in extract_insn in recog.c for asm with many parameters)
PR target/61692 * cfgexpand.c (expand_asm_operands): Count all inline asm params. PR target/61692 * gcc.dg/pr61692.c: New test. From-SVN: r218494
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index c996317..d85dbca 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -2594,7 +2594,7 @@ expand_asm_operands (tree string, tree outputs, tree inputs,
}
ninputs += ninout;
- if (ninputs + noutputs > MAX_RECOG_OPERANDS)
+ if (ninputs + noutputs + nlabels > MAX_RECOG_OPERANDS)
{
error ("more than %d operands in %<asm%>", MAX_RECOG_OPERANDS);
return;