From 5d0930ea9300ed0b028a23026594d85776b6b3d4 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 21 Sep 1994 00:05:57 +0000 Subject: [PATCH] (asm_insn_count): Handle ASM_INPUTs too. From-SVN: r8111 --- gcc/final.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/final.c b/gcc/final.c index 375429d98af..61a90a95eff 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -824,9 +824,13 @@ asm_insn_count (body) char *template; int count = 1; - for (template = decode_asm_operands (body, NULL_PTR, NULL_PTR, - NULL_PTR, NULL_PTR); - *template; template++) + if (GET_CODE (body) == ASM_INPUT) + template = XSTR (body, 0); + else + template = decode_asm_operands (body, NULL_PTR, NULL_PTR, + NULL_PTR, NULL_PTR); + + for ( ; *template; template++) if (IS_ASM_LOGICAL_LINE_SEPARATOR(*template) || *template == '\n') count++;