summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-08 08:55:33 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-03-13 21:13:15 +0100
commit4cc424d63bb72969f35c9a0c6c3584bc5e821ad5 (patch)
treea1ece9aa876f76ee01ffbd892a342cb8f6d6b54f
parente25966c0bcbe137b19e4290a42a090778d10e1e5 (diff)
Accept the asm qualifier 'inline'.
-rw-r--r--NEWS.md1
-rw-r--r--src/parser/parser.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index ad40f80..2b907fa 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -18,6 +18,7 @@ cparser 1.22.1 (2016-01-23)
* Add target `mips`
* Add target `riscv32`
* Accept asm qualifiers in arbitrary order
+* Accept (and ignore) the asm qualifier `inline`
* Bugfixes
cparser 1.22.0 (2015-12-31)
diff --git a/src/parser/parser.c b/src/parser/parser.c
index 1e4e6b1..6e735e7 100644
--- a/src/parser/parser.c
+++ b/src/parser/parser.c
@@ -9336,11 +9336,13 @@ static statement_t *parse_gcc_asm_statement(void)
add_anchor_token(T_STRING_LITERAL);
bool asm_goto = false;
+ bool asm_inline = false; /* currently ignored */
bool asm_volatile = false;
for (;; next_token()) {
switch (token.kind) {
bool* flag;
case T_goto: flag = &asm_goto; goto check_duplicate;
+ case T_inline: flag = &asm_inline; goto check_duplicate;
case T_volatile: flag = &asm_volatile; goto check_duplicate;
check_duplicate:
if (*flag)