OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed4a8e
)
(asm_insn_count): Handle ASM_INPUTs too.
author
dje
<dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Sep 1994 00:05:57 +0000
(
00:05
+0000)
committer
dje
<dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Sep 1994 00:05:57 +0000
(
00:05
+0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8111
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/final.c
patch
|
blob
|
history
diff --git
a/gcc/final.c
b/gcc/final.c
index
375429d
..
61a90a9
100644
(file)
--- 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++;