projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a2f38a
)
Fix for inline assembler: According to the GCC documentation an 'asm' instruction...
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 21 Aug 2008 20:54:18 +0000
(20:54 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 21 Aug 2008 20:54:18 +0000
(20:54 +0000)
[r21330]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
d3912f0
..
8c1a0c3
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-7596,6
+7596,13
@@
end_of_asm:
rem_anchor_token(')');
expect(')');
expect(';');
+
+ if (asm_statement->outputs == NULL) {
+ /* GCC: An 'asm' instruction without any output operands will be treated
+ * identically to a volatile 'asm' instruction. */
+ asm_statement->is_volatile = true;
+ }
+
return statement;
end_error:
return create_invalid_statement();