From: Bart Van Assche <bvanassche@acm.org>
To: linux-sparse@vger.kernel.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Bart Van Assche <bvanassche@acm.org>
Subject: [PATCH 56/73] preprocessor: Add support for #embed directive
Date: Mon, 9 Nov 2026 12:32:42 -0800 [thread overview]
Message-ID: <20261109203259.362845-57-bvanassche@acm.org> (raw)
In-Reply-To: <20261109203259.362845-1-bvanassche@acm.org>
Add support for the C23 #embed preprocessor directive to embed binary
resource files into source code as comma-delimited integer constant
sequences, supporting the standard limit, prefix, suffix, and if_empty
parameters.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
pre-process.c | 396 +++++++++++++++++++
validation/preprocessor/c23-embed-error.c | 19 +
validation/preprocessor/c23-embed-pedantic.c | 12 +
validation/preprocessor/c23-embed.c | 72 ++++
4 files changed, 499 insertions(+)
create mode 100644 validation/preprocessor/c23-embed-error.c
create mode 100644 validation/preprocessor/c23-embed-pedantic.c
create mode 100644 validation/preprocessor/c23-embed.c
diff --git a/pre-process.c b/pre-process.c
index e8b3511c225e..428b96f990fb 100644
--- a/pre-process.c
+++ b/pre-process.c
@@ -35,6 +35,7 @@
#include <fcntl.h>
#include <limits.h>
#include <time.h>
+#include <errno.h>
#include <sys/stat.h>
#include "lib.h"
@@ -1661,6 +1662,400 @@ err:
return false;
}
+static int open_embed_file(struct stream *stream, const char *filename,
+ int expect)
+{
+ char fullname[PATH_MAX];
+ const char **path;
+ size_t flen = strlen(filename);
+
+ if (filename[0] == '/')
+ return open(filename, O_RDONLY);
+
+ set_stream_include_path(stream);
+ path = expect ? angle_includepath : quote_includepath;
+ if (!path)
+ return -1;
+ while (*path != NULL) {
+ const char *p = *path++;
+ size_t plen = strlen(p);
+ if (plen + flen + 2 > sizeof(fullname))
+ continue;
+ memcpy(fullname, p, plen);
+ if (plen && p[plen - 1] != '/') {
+ fullname[plen] = '/';
+ plen++;
+ }
+ memcpy(fullname + plen, filename, flen + 1);
+ int fd = open(fullname, O_RDONLY);
+ if (fd >= 0)
+ return fd;
+ }
+ return -1;
+}
+
+static int free_preprocessor_line(struct token *token);
+
+static int handle_embed(struct stream *stream, struct token **line,
+ struct token *token)
+{
+ char filename[PATH_MAX];
+ int expect = 0;
+ struct token *next = token->next;
+ struct token **param_p;
+ struct token *prefix_start = NULL, *prefix_end = NULL;
+ struct token *suffix_start = NULL, *suffix_end = NULL;
+ struct token *if_empty_start = NULL, *if_empty_end = NULL;
+ int has_limit = 0;
+ unsigned long long limit_val = ~0ULL;
+ unsigned int seen_params = 0;
+ int fd;
+ struct stat st;
+ unsigned char *buf = NULL;
+ ssize_t bytes_read = 0;
+ struct token *head = NULL, **tail = &head;
+ static char num_strs[256][4];
+ static int num_strs_inited = 0;
+
+ if (standard < STANDARD_C23 && Wpedantic)
+ warning(token->pos, "#embed before C23 is an extension");
+
+ next = scan_next(&token->next);
+ if (match_op(next, '<')) {
+ expect = '>';
+ next = next->next;
+ if (!collect_angle_filename(&next, filename, sizeof(filename),
+ token->pos))
+ return 1;
+ } else if (token_type(next) == TOKEN_STRING) {
+ if (!extract_string_filename(&next, filename, sizeof(filename)))
+ return 1;
+ } else {
+ while (token_type(next = scan_next(&token->next)) ==
+ TOKEN_IDENT &&
+ !expand_one_symbol(&token->next))
+ ;
+ next = scan_next(&token->next);
+ if (match_op(next, '<')) {
+ struct token **p = &next->next;
+ struct token *t;
+
+ while (!eof_token(t = scan_next(p)) &&
+ !match_op(t, '>')) {
+ if (token_type(t) != TOKEN_IDENT ||
+ expand_one_symbol(p))
+ p = &t->next;
+ }
+ expect = '>';
+ next = next->next;
+ if (!collect_angle_filename(&next, filename,
+ sizeof(filename),
+ token->pos))
+ return 1;
+ } else if (token_type(next) == TOKEN_STRING) {
+ if (!extract_string_filename(&next, filename,
+ sizeof(filename)))
+ return 1;
+ } else {
+ sparse_error(next->pos,
+ "expected \"FILENAME\" or <FILENAME>");
+ return 1;
+ }
+ }
+
+ param_p = &next;
+ while (!eof_token(next = scan_next(param_p))) {
+ if (token_type(next) == TOKEN_IDENT) {
+ struct ident *id;
+ struct position id_pos;
+ enum embed_param_kind kind;
+ struct token *pstart, *pend = NULL;
+ int depth = 1;
+
+ if (!expand_one_symbol(param_p))
+ continue;
+ next = *param_p;
+ if (token_type(next) != TOKEN_IDENT) {
+ sparse_error(next->pos,
+ "unexpected token in #embed");
+ return 1;
+ }
+ id = next->ident;
+ id_pos = next->pos;
+ if (match_op(next->next, ':') &&
+ match_op(next->next->next, ':')) {
+ struct token *attr = next->next->next->next;
+
+ if (token_type(attr) == TOKEN_IDENT)
+ sparse_error(
+ id_pos,
+ "unknown embed parameter '%s::%s'",
+ show_ident(id),
+ show_ident(attr->ident));
+ else
+ sparse_error(attr->pos,
+ "identifier expected");
+ return 1;
+ }
+
+ kind = classify_embed_param(id);
+ if (kind == EMBED_PARAM_NONE) {
+ sparse_error(id_pos,
+ "unknown embed parameter '%s'",
+ show_ident(id));
+ return 1;
+ }
+ if (seen_params & kind) {
+ sparse_error(id_pos,
+ "duplicate embed parameter '%s'",
+ show_ident(id));
+ return 1;
+ }
+ seen_params |= kind;
+
+ next = scan_next(&next->next);
+ if (!match_op(next, '(')) {
+ sparse_error(id_pos, "expected '(' after '%s'",
+ show_ident(id));
+ return 1;
+ }
+ pstart = next->next;
+ next = next->next;
+ while (!eof_token(next) && depth > 0) {
+ if (match_op(next, '('))
+ depth++;
+ else if (match_op(next, ')') && !--depth)
+ break;
+ pend = next;
+ next = next->next;
+ }
+ if (!match_op(next, ')')) {
+ sparse_error(id_pos, "expected ')'");
+ return 1;
+ }
+ next = next->next;
+ if (kind == EMBED_PARAM_LIMIT) {
+ if (!eval_embed_limit_expr(id_pos, pstart, pend,
+ &limit_val))
+ return 1;
+ has_limit = 1;
+ } else if (kind == EMBED_PARAM_PREFIX) {
+ prefix_start = pstart;
+ prefix_end = pend;
+ } else if (kind == EMBED_PARAM_SUFFIX) {
+ suffix_start = pstart;
+ suffix_end = pend;
+ } else if (kind == EMBED_PARAM_IF_EMPTY) {
+ if_empty_start = pstart;
+ if_empty_end = pend;
+ }
+ param_p = &next;
+ continue;
+ }
+ sparse_error(next->pos, "unexpected token in #embed");
+ return 1;
+ }
+
+ fd = open_embed_file(stream, filename, expect);
+ if (fd < 0) {
+ sparse_error(token->pos, "unable to open '%s'", filename);
+ return 1;
+ }
+
+ if (fstat(fd, &st) < 0) {
+ close(fd);
+ sparse_error(token->pos, "unable to stat '%s'", filename);
+ return 1;
+ }
+ if (S_ISDIR(st.st_mode)) {
+ close(fd);
+ sparse_error(token->pos, "'%s' is a directory", filename);
+ return 1;
+ }
+
+ if (S_ISREG(st.st_mode) || has_limit) {
+ unsigned long long to_read =
+ S_ISREG(st.st_mode) ? (unsigned long long)st.st_size :
+ limit_val;
+
+ if (has_limit && limit_val < to_read)
+ to_read = limit_val;
+ if (to_read > MAX_EMBED_SIZE) {
+ sparse_error(
+ token->pos,
+ "'%s' is too large to embed (%llu bytes, max %d bytes)",
+ filename, to_read, MAX_EMBED_SIZE);
+ close(fd);
+ return 1;
+ }
+ buf = malloc(to_read ? to_read : 1);
+ if (!buf) {
+ sparse_error(
+ token->pos,
+ "out of memory allocating #embed buffer for '%s'",
+ filename);
+ close(fd);
+ return 1;
+ }
+ if (to_read > 0) {
+ size_t total = 0;
+
+ while (total < to_read) {
+ ssize_t r =
+ read(fd, buf + total, to_read - total);
+ if (r < 0) {
+ if (errno == EINTR || errno == EAGAIN)
+ continue;
+ sparse_error(token->pos,
+ "error reading '%s': %s",
+ filename, strerror(errno));
+ free(buf);
+ close(fd);
+ return 1;
+ }
+ if (r == 0)
+ break;
+ total += r;
+ }
+ bytes_read = total;
+ }
+ } else {
+ size_t cap = 4096;
+ size_t total = 0;
+
+ buf = malloc(cap);
+ if (!buf) {
+ sparse_error(
+ token->pos,
+ "out of memory allocating #embed buffer for '%s'",
+ filename);
+ close(fd);
+ return 1;
+ }
+ for (;;) {
+ ssize_t r;
+
+ if (total == cap) {
+ size_t new_cap = cap * 2;
+ unsigned char *nbuf;
+
+ if (new_cap > MAX_EMBED_SIZE + 1)
+ new_cap = MAX_EMBED_SIZE + 1;
+ nbuf = realloc(buf, new_cap);
+ if (!nbuf) {
+ sparse_error(
+ token->pos,
+ "out of memory allocating #embed buffer for '%s'",
+ filename);
+ free(buf);
+ close(fd);
+ return 1;
+ }
+ buf = nbuf;
+ cap = new_cap;
+ }
+ r = read(fd, buf + total, cap - total);
+ if (r < 0) {
+ if (errno == EINTR || errno == EAGAIN)
+ continue;
+ sparse_error(token->pos,
+ "error reading '%s': %s",
+ filename, strerror(errno));
+ free(buf);
+ close(fd);
+ return 1;
+ }
+ if (r == 0)
+ break;
+ total += r;
+ if (total > MAX_EMBED_SIZE) {
+ sparse_error(
+ token->pos,
+ "'%s' is too large to embed (max %d bytes)",
+ filename, MAX_EMBED_SIZE);
+ free(buf);
+ close(fd);
+ return 1;
+ }
+ }
+ bytes_read = total;
+ }
+ close(fd);
+
+ if (bytes_read == 0) {
+ if (if_empty_start && if_empty_end) {
+ struct token *p = if_empty_start;
+ while (p) {
+ struct token *t = dup_token(p, &token->pos);
+ *tail = t;
+ tail = &t->next;
+ if (p == if_empty_end)
+ break;
+ p = p->next;
+ }
+ *tail = *line;
+ *line = head;
+ }
+ free(buf);
+ free_preprocessor_line(token);
+ return 0;
+ }
+
+ if (prefix_start && prefix_end) {
+ struct token *p = prefix_start;
+ while (p) {
+ struct token *t = dup_token(p, &token->pos);
+ *tail = t;
+ tail = &t->next;
+ if (p == prefix_end)
+ break;
+ p = p->next;
+ }
+ }
+
+ if (!num_strs_inited) {
+ for (unsigned int i = 0; i < 256; i++)
+ snprintf(num_strs[i], sizeof(num_strs[i]), "%u",
+ i & 0xff);
+ num_strs_inited = 1;
+ }
+
+ for (ssize_t i = 0; i < bytes_read; i++) {
+ if (i > 0) {
+ struct token *comma = alloc_token(&token->pos);
+ token_type(comma) = TOKEN_SPECIAL;
+ comma->special = ',';
+ *tail = comma;
+ tail = &comma->next;
+ }
+ struct token *num = alloc_token(&token->pos);
+ token_type(num) = TOKEN_NUMBER;
+ num->number = num_strs[buf[i]];
+ *tail = num;
+ tail = &num->next;
+ }
+
+ if (suffix_start && suffix_end) {
+ struct token *p = suffix_start;
+ while (p) {
+ struct token *t = dup_token(p, &token->pos);
+ *tail = t;
+ tail = &t->next;
+ if (p == suffix_end)
+ break;
+ p = p->next;
+ }
+ }
+
+ if (head) {
+ *tail = *line;
+ *line = head;
+ }
+ free(buf);
+ free_preprocessor_line(token);
+ return 0;
+}
+
static int free_preprocessor_line(struct token *token)
{
while (token_type(token) != TOKEN_EOF) {
@@ -2993,6 +3388,7 @@ static void init_preprocessor(void)
{ "error", handle_error },
{ "include", handle_include },
{ "include_next", handle_include_next },
+ { "embed", handle_embed },
{ "pragma", handle_pragma },
{ "line", handle_line },
{ "ident", handle_ident },
diff --git a/validation/preprocessor/c23-embed-error.c b/validation/preprocessor/c23-embed-error.c
new file mode 100644
index 000000000000..26bfd4bc40c7
--- /dev/null
+++ b/validation/preprocessor/c23-embed-error.c
@@ -0,0 +1,19 @@
+int outside = __has_embed("options.h");
+
+#if __has_embed("options.h" limit(1) limit(2))
+#endif
+
+#embed "options.h" limit(1) __limit__(2)
+#embed "options.h" vendor::param(1)
+
+/*
+ * check-name: c23-embed-error
+ * check-command: sparse -std=c23 -Wno-decl -I.. $file
+ *
+ * check-error-start
+preprocessor/c23-embed-error.c:1:15: error: '__has_embed' used outside of preprocessing directive
+preprocessor/c23-embed-error.c:3:38: error: duplicate embed parameter 'limit'
+preprocessor/c23-embed-error.c:6:29: error: duplicate embed parameter '__limit__'
+preprocessor/c23-embed-error.c:7:20: error: unknown embed parameter 'vendor::param'
+ * check-error-end
+ */
diff --git a/validation/preprocessor/c23-embed-pedantic.c b/validation/preprocessor/c23-embed-pedantic.c
new file mode 100644
index 000000000000..8e78aa4121da
--- /dev/null
+++ b/validation/preprocessor/c23-embed-pedantic.c
@@ -0,0 +1,12 @@
+static const unsigned char data[] = {
+#embed "options.h" limit(1)
+};
+
+/*
+ * check-name: c23-embed-pedantic
+ * check-command: sparse -std=c11 -Wpedantic -I.. $file
+ *
+ * check-error-start
+preprocessor/c23-embed-pedantic.c:2:2: warning: #embed before C23 is an extension
+ * check-error-end
+ */
diff --git a/validation/preprocessor/c23-embed.c b/validation/preprocessor/c23-embed.c
new file mode 100644
index 000000000000..a4411847b9cb
--- /dev/null
+++ b/validation/preprocessor/c23-embed.c
@@ -0,0 +1,72 @@
+static const unsigned char data[] = {
+#embed "options.h" limit(4)
+};
+
+static const unsigned char with_params[] = {
+#embed "options.h" limit(2) prefix(10, 20, ) suffix(, 30, 40)
+};
+
+static const unsigned char dunder_params[] = {
+#embed "options.h" __limit__(2) __prefix__(10, ) __suffix__(, 20)
+};
+
+static const unsigned char empty_buf[] = {
+#embed "options.h" limit(0) if_empty(99)
+};
+
+static const unsigned char dev_null_buf[] = {
+#embed "/dev/null" __if_empty__(77)
+};
+
+static const unsigned char zero_buf[] = {
+#embed "/dev/zero" limit(4)
+};
+
+static const unsigned char nested_has_embed[] = {
+#embed "options.h" limit(__has_embed("options.h"))
+};
+
+static_assert(sizeof(data) == 4, "size data");
+static_assert(sizeof(with_params) == 6, "size with_params");
+static_assert(sizeof(dunder_params) == 4, "size dunder_params");
+static_assert(sizeof(empty_buf) == 1, "size empty_buf");
+static_assert(sizeof(dev_null_buf) == 1, "size dev_null_buf");
+static_assert(sizeof(zero_buf) == 4, "size zero_buf");
+static_assert(sizeof(nested_has_embed) == 1, "size nested_has_embed");
+
+static constexpr unsigned char p0 =
+#embed "options.h" limit(1) prefix(10 + ) suffix( + 5)
+ ;
+static_assert(p0 == 50, "p0");
+
+static constexpr unsigned char z0 =
+#embed "/dev/zero" limit(1)
+ ;
+static_assert(z0 == 0, "z0");
+
+static constexpr unsigned char b0 =
+#embed "options.h" limit(1)
+ ;
+static_assert(b0 == 35, "b0");
+
+#define EMBED_HDR "options.h"
+static const unsigned char macro_hdr_params[] = {
+#embed EMBED_HDR limit(2) if_empty(__COUNTER__) prefix(11, )
+};
+static_assert(__COUNTER__ == 0, "if_empty not expanded when non-empty");
+static_assert(sizeof(macro_hdr_params) == 3, "size macro_hdr_params");
+
+static constexpr unsigned char macro_hdr_p0 =
+#embed EMBED_HDR limit(1) if_empty(__COUNTER__) prefix(10 + )
+ ;
+static_assert(macro_hdr_p0 == 45, "macro_hdr_p0");
+
+static const unsigned char large_limit_buf[] = {
+#embed "options.h" limit(1ULL << 63)
+};
+static_assert(sizeof(large_limit_buf) > 4, "size large_limit_buf");
+
+/*
+ * check-name: c23-embed
+ * check-command: sparse -std=c23 -Wno-decl -I.. $file
+ */
next prev parent reply other threads:[~2026-11-09 20:33 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 20:31 Bart Van Assche
2026-11-09 20:31 ` [PATCH 01/73] Makefile: Pass '--' to rm in clean target to handle dash-prefixed files Bart Van Assche
2026-11-09 20:31 ` [PATCH 02/73] sparse-llvm: Use LLVMCreateBuilderForModule() with LLVM 24 and later Bart Van Assche
2026-11-09 20:31 ` [PATCH 03/73] typeof_unqual: Strip qualifiers and address space from types and arrays Bart Van Assche
2026-11-09 20:31 ` [PATCH 04/73] bitfield: Pack consecutive _Bool bitfields into byte containers Bart Van Assche
2026-11-09 20:31 ` [PATCH 05/73] allocate: Harden slab allocation bounds, zeroing, and mmap checks Bart Van Assche
2026-11-09 20:31 ` [PATCH 06/73] tokenize: Support 4096-byte identifiers and fix escape bounds Bart Van Assche
2026-11-09 20:31 ` [PATCH 07/73] pre-process: Fix macro expansion and include directive handling Bart Van Assche
2026-11-09 20:31 ` [PATCH 08/73] options, lib: Harden warning buffers and command-line option parsing Bart Van Assche
2026-11-09 20:31 ` [PATCH 09/73] builtin: Fix atomic builtin type checking and object_size bounds Bart Van Assche
2026-11-09 20:31 ` [PATCH 10/73] parse, show-parse: Fix attribute propagation, enum overflow, and bounds Bart Van Assche
2026-11-09 20:31 ` [PATCH 11/73] target-openrisc: Set target_openrisc.mach to MACH_OPENRISC Bart Van Assche
2026-11-09 20:31 ` [PATCH 12/73] evaluate: Fix pointer arithmetic, incomplete types, and qualifiers Bart Van Assche
2026-11-09 20:31 ` [PATCH 13/73] expand: Fix static initializer folding and floating-point casts Bart Van Assche
2026-11-09 20:32 ` [PATCH 14/73] inline: Copy union cast types and VLA bounds when inlining Bart Van Assche
2026-11-09 20:32 ` [PATCH 15/73] linearize, flow: Fix asm operands, switch case bounds, and DSE Bart Van Assche
2026-11-09 20:32 ` [PATCH 16/73] memops, ssa: Walk parent insns in reverse and skip mixed-size SSA Bart Van Assche
2026-11-09 20:32 ` [PATCH 17/73] simplify: Prevent overflow on LLONG_MIN negation and fix simplifications Bart Van Assche
2026-11-09 20:32 ` [PATCH 18/73] sparse: Gate context failure warning on Wcontext and catch underflow Bart Van Assche
2026-11-09 20:32 ` [PATCH 19/73] ast-model: Return AST_N_COLUMNS and inspect child nodes lazily Bart Van Assche
2026-11-09 20:32 ` [PATCH 20/73] c2xml: Guard against recursive symbols and free xmlGetProp() string Bart Van Assche
2026-11-09 20:32 ` [PATCH 21/73] compile-i386: Fix buffer bounds, unsigned '<=' codegen, and null checks Bart Van Assche
2026-11-09 20:32 ` [PATCH 22/73] ctags: Fix line comparison order and handle SYM_RESTRICT and SYM_LABEL Bart Van Assche
2026-11-09 20:32 ` [PATCH 23/73] dissect: Unwrap array element type via base_type() Bart Van Assche
2026-11-09 20:32 ` [PATCH 24/73] example: Fix show_op() rotating buffer dimensions Bart Van Assche
2026-11-09 20:32 ` [PATCH 25/73] graph: Check PSEUDO_SYM before dereferencing insn->func->sym Bart Van Assche
2026-11-09 20:32 ` [PATCH 26/73] scheck: Fix slice() upper bit index calculation Bart Van Assche
2026-11-09 20:32 ` [PATCH 27/73] sparse-llvm: Support arbitrary struct member counts and fix operand types Bart Van Assche
2026-11-09 20:32 ` [PATCH 28/73] inline: Duplicate generic expressions instead of evaluating them Bart Van Assche
2026-11-09 20:32 ` [PATCH 29/73] lib: Avoid mutating fmt before va_start() in warning() Bart Van Assche
2026-11-09 20:32 ` [PATCH 30/73] cse, canon: Cast pointers to uintptr_t before relational comparison Bart Van Assche
2026-11-09 20:32 ` [PATCH 31/73] context: Add "conditional context increment" model Bart Van Assche
2026-11-09 20:32 ` [PATCH 32/73] expand: Simplify signed constants early Bart Van Assche
2026-11-09 20:32 ` [PATCH 33/73] bitwise: Allow all-bits-set as a restricted value Bart Van Assche
2026-11-09 20:32 ` [PATCH 34/73] bitwise: Allow restricted ordered compares with unrestricted values Bart Van Assche
2026-11-09 20:32 ` [PATCH 35/73] bitwise: Keep unrestricted values unrestricted after a cast Bart Van Assche
2026-11-09 20:32 ` [PATCH 36/73] bitwise: Don't remove MOD_SPECIFIER from 'bitwise' types Bart Van Assche
2026-11-09 20:32 ` [PATCH 37/73] bitwise: Allow both regular casts and forced casts for restricted values Bart Van Assche
2026-11-09 20:32 ` [PATCH 38/73] clang-format: Add .clang-format configuration file Bart Van Assche
2026-11-09 20:32 ` [PATCH 39/73] options: Add support for -std=c23, -std=c2x and -std=gnu23 Bart Van Assche
2026-11-09 20:32 ` [PATCH 40/73] preprocessor: Add support for #elifdef and #elifndef Bart Van Assche
2026-11-09 20:32 ` [PATCH 41/73] preprocessor: Add support for __has_include and __has_include_next Bart Van Assche
2026-11-09 20:32 ` [PATCH 42/73] c23: Add support for static_assert, alignas, alignof, thread_local Bart Van Assche
2026-11-09 20:32 ` [PATCH 43/73] c23: Add support for bool, true, and false keywords Bart Van Assche
2026-11-09 20:32 ` [PATCH 44/73] c23: Add support for nullptr and nullptr_t Bart Van Assche
2026-11-09 20:32 ` [PATCH 45/73] c23: Add support for digit separators in numeric literals Bart Van Assche
2026-11-09 20:32 ` [PATCH 46/73] c23: Support unnamed parameters in function definitions Bart Van Assche
2026-11-09 20:32 ` [PATCH 47/73] c23: Support variadic functions without named parameters Bart Van Assche
2026-11-09 20:32 ` [PATCH 48/73] c23: Support labels before declarations and at block ends Bart Van Assche
2026-11-09 20:32 ` [PATCH 49/73] c23: Support auto type inference Bart Van Assche
2026-11-09 20:32 ` [PATCH 50/73] c23: Support constexpr object specifier Bart Van Assche
2026-11-09 20:32 ` [PATCH 51/73] c23: Support enumerations with fixed underlying types Bart Van Assche
2026-11-09 20:32 ` [PATCH 52/73] c23: Support standard [[]] attribute syntax Bart Van Assche
2026-11-09 20:32 ` [PATCH 53/73] preprocessor: Add support for __has_c_attribute Bart Van Assche
2026-11-09 20:32 ` [PATCH 54/73] c23: Support empty initializer braces {} Bart Van Assche
2026-11-09 20:32 ` [PATCH 55/73] preprocessor: Add support for __has_embed Bart Van Assche
2026-11-09 20:32 ` Bart Van Assche [this message]
2026-11-09 20:32 ` [PATCH 57/73] c23: Add support for u8 character constants and string literals Bart Van Assche
2026-11-09 20:32 ` [PATCH 58/73] preprocessor: Add support for __VA_OPT__ Bart Van Assche
2026-11-09 20:32 ` [PATCH 59/73] c23: Treat empty parameter list () as (void) and reject K&R functions Bart Van Assche
2026-11-09 20:32 ` [PATCH 60/73] c23: Support storage-class specifiers in compound literals Bart Van Assche
2026-11-09 20:32 ` [PATCH 61/73] c23: Add support for _BitInt(N) Bart Van Assche
2026-11-09 20:32 ` [PATCH 62/73] enum: Support machine mode attributes on enumeration types Bart Van Assche
2026-11-09 20:32 ` [PATCH 63/73] enum: Support __attribute__((packed)) " Bart Van Assche
2026-11-09 20:32 ` [PATCH 64/73] expand: Ignore top-level non-array address space in compare_types() Bart Van Assche
2026-11-09 20:32 ` [PATCH 65/73] builtin: Support __builtin_infer_alloc_token() as a size_t ICE Bart Van Assche
2026-11-09 20:32 ` [PATCH 66/73] builtin: Add support for Linux kernel compiler builtins Bart Van Assche
2026-11-09 20:32 ` [PATCH 67/73] builtin: Add support for __builtin_has_attribute() Bart Van Assche
2026-11-09 20:32 ` [PATCH 68/73] cleanup: Support __attribute__((cleanup(...))) in linearize and -Wcontext Bart Van Assche
2026-11-09 20:32 ` [PATCH 69/73] builtin: Do not evaluate __builtin_clz(0) and __builtin_ctz(0) Bart Van Assche
2026-11-09 20:32 ` [PATCH 70/73] pre-process: Support long token and string expansions dynamically Bart Van Assche
2026-11-09 20:32 ` [PATCH 71/73] x86: Undefine conflicting bitness macros when parsing -m flags Bart Van Assche
2026-11-09 20:32 ` [PATCH 72/73] evaluate: Accept conditional expressions with only one void side Bart Van Assche
2026-11-09 20:32 ` [PATCH 73/73] ci: Add Linux kernel GitHub Actions workflow and build script Bart Van Assche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261109203259.362845-57-bvanassche@acm.org \
--to=bvanassche@acm.org \
--cc=linux-sparse@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox