diff options
-rw-r--r-- | parse.c | 1 | ||||
-rw-r--r-- | show-parse.c | 2 | ||||
-rw-r--r-- | validation/linear/bitwise-cmpu.c | 1 |
3 files changed, 1 insertions, 3 deletions
@@ -1586,7 +1586,6 @@ static struct token *declaration_specifiers(struct token *token, struct decl_sta } type = alloc_symbol(token->pos, SYM_BASETYPE); *type = *ctx->ctype.base_type; - type->ctype.modifiers &= ~MOD_SPECIFIER; type->ctype.base_type = ctx->ctype.base_type; type->type = SYM_RESTRICT; ctx->ctype.base_type = type; diff --git a/show-parse.c b/show-parse.c index e2fc18bb..2ab2479b 100644 --- a/show-parse.c +++ b/show-parse.c @@ -318,7 +318,7 @@ deeper: if (as) prepend(name, "%s ", show_as(as)); - if (sym && (sym->type == SYM_BASETYPE || sym->type == SYM_ENUM)) + if (sym && (sym->type == SYM_BASETYPE || sym->type == SYM_ENUM || sym->type == SYM_RESTRICT)) mod &= ~MOD_SPECIFIER; s = modifier_string(mod); len = strlen(s); diff --git a/validation/linear/bitwise-cmpu.c b/validation/linear/bitwise-cmpu.c index 8932436a..e151b974 100644 --- a/validation/linear/bitwise-cmpu.c +++ b/validation/linear/bitwise-cmpu.c @@ -8,7 +8,6 @@ static int gtu(bu32 x, bu32 y) { return (x > y); } /* * check-name: bitwise-cmpu * check-command: test-linearize -Wno-decl $file - * check-known-to-fail * * check-output-ignore * check-output-excludes: setlt\\. |