summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndreas Fried <andreas.fried@kit.edu>2018-08-28 18:12:41 +0200
committerDaniel Biester <danielbiester@icloud.com>2020-04-20 15:03:36 +0200
commitdfe5aa6deca54f395e37e7549b24639f23d5ebf4 (patch)
tree05bdf4bc2a8909515c8fa41e95b6896c996fd431
parentb1d48f94a9ca2d49f82a6c8bb8fe37b2edb0e9ec (diff)
Do not ignore i-Core attributes.
-rw-r--r--src/parser/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser/parser.c b/src/parser/parser.c
index 5bcbe9c..1889aa7 100644
--- a/src/parser/parser.c
+++ b/src/parser/parser.c
@@ -1300,8 +1300,9 @@ static attribute_t *parse_attribute_gnu_single(void)
attribute_kind_t kind;
char const *const name = symbol->string;
+
for (kind = ATTRIBUTE_GNU_FIRST;; ++kind) {
- if (kind > ATTRIBUTE_GNU_LAST) {
+ if (kind > ATTRIBUTE_ICORE_LAST) {
/* special case for "__const" */
if (peek(T_const)) {
kind = ATTRIBUTE_GNU_CONST;