diff options
author | Doug Evans <dje@gnu.org> | 1994-09-21 00:05:57 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1994-09-21 00:05:57 +0000 |
commit | 5d0930ea9300ed0b028a23026594d85776b6b3d4 (patch) | |
tree | da0c2c4abfec80a000b065331a02ed36b9e2efec /gcc | |
parent | 0ea3c6ba7d2cb9279bc4b81130f7750895b21562 (diff) | |
download | gcc-5d0930ea9300ed0b028a23026594d85776b6b3d4.zip gcc-5d0930ea9300ed0b028a23026594d85776b6b3d4.tar.gz gcc-5d0930ea9300ed0b028a23026594d85776b6b3d4.tar.bz2 |
(asm_insn_count): Handle ASM_INPUTs too.
From-SVN: r8111
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/final.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/final.c b/gcc/final.c index 375429d..61a90a9 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++; |