aboutsummaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-03-12 18:43:14 -0700
committerMichael Forney <mforney@mforney.org>2019-03-12 18:44:40 -0700
commitcd1c07667495e7dd991cfcd0637eddf2bb65eac9 (patch)
tree98678662672376b2ab3f6c59a83eb511306200fc /scope.c
parent842176df9208931f62d5e3dd62825fe04b9ae44d (diff)
Implement __builtin_constant_p
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/scope.c b/scope.c
index 1bcd31f..c557f47 100644
--- a/scope.c
+++ b/scope.c
@@ -17,15 +17,16 @@ scopeinit(void)
char *name;
struct declaration decl;
} builtins[] = {
- {"__builtin_alloca", {.kind = DECLBUILTIN, .builtin = BUILTINALLOCA}},
- {"__builtin_inff", {.kind = DECLBUILTIN, .builtin = BUILTININFF}},
- {"__builtin_nanf", {.kind = DECLBUILTIN, .builtin = BUILTINNANF}},
- {"__builtin_offsetof", {.kind = DECLBUILTIN, .builtin = BUILTINOFFSETOF}},
- {"__builtin_va_arg", {.kind = DECLBUILTIN, .builtin = BUILTINVAARG}},
- {"__builtin_va_copy", {.kind = DECLBUILTIN, .builtin = BUILTINVACOPY}},
- {"__builtin_va_end", {.kind = DECLBUILTIN, .builtin = BUILTINVAEND}},
- {"__builtin_va_list", {.kind = DECLTYPE, .type = &typevalist}},
- {"__builtin_va_start", {.kind = DECLBUILTIN, .builtin = BUILTINVASTART}},
+ {"__builtin_alloca", {.kind = DECLBUILTIN, .builtin = BUILTINALLOCA}},
+ {"__builtin_constant_p", {.kind = DECLBUILTIN, .builtin = BUILTINCONSTANTP}},
+ {"__builtin_inff", {.kind = DECLBUILTIN, .builtin = BUILTININFF}},
+ {"__builtin_nanf", {.kind = DECLBUILTIN, .builtin = BUILTINNANF}},
+ {"__builtin_offsetof", {.kind = DECLBUILTIN, .builtin = BUILTINOFFSETOF}},
+ {"__builtin_va_arg", {.kind = DECLBUILTIN, .builtin = BUILTINVAARG}},
+ {"__builtin_va_copy", {.kind = DECLBUILTIN, .builtin = BUILTINVACOPY}},
+ {"__builtin_va_end", {.kind = DECLBUILTIN, .builtin = BUILTINVAEND}},
+ {"__builtin_va_list", {.kind = DECLTYPE, .type = &typevalist}},
+ {"__builtin_va_start", {.kind = DECLBUILTIN, .builtin = BUILTINVASTART}},
};
struct builtin *b;