From 44662c62f444fc50fe523d987199f6a10c9a693c Mon Sep 17 00:00:00 2001 From: Matthew Sotoudeh Date: Sun, 30 Jul 2023 18:18:25 -0700 Subject: add support for passing through sizeof & alignofs --- chibicc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chibicc.h') diff --git a/chibicc.h b/chibicc.h index 522c214..2782481 100644 --- a/chibicc.h +++ b/chibicc.h @@ -281,6 +281,10 @@ struct Node { // Numeric literal int64_t val; long double fval; + + // sizeof(...) or alignof(...) + Type *is_sizeof; + Type *is_alignof; }; Node *new_cast(Node *expr, Type *ty); @@ -465,6 +469,7 @@ void hashmap_test(void); extern bool opt_fpic; extern bool opt_fcommon; extern bool opt_line_numbers; +extern bool opt_type_builtins; extern char *base_file; // -- cgit v1.2.3