From 92c952db6d316c915736a946ba706a20d15afdd2 Mon Sep 17 00:00:00 2001 From: York Jasper Niebuhr Date: Tue, 28 Oct 2025 22:32:22 +0100 Subject: [PATCH] Updated README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e87f99..7446dcb 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ sudo cmake --install build Warning: Rough road ahead. -Now to the annoying part: The GNU front-end for the C language folds offsetof-like expressions into constants. In the parser. IN. THE. PARSER. Any hooks/events available to plugins happen significantly later in the pipeline. Thus, SPSLR can not detect offsetofs, be it \_\_builtin\_offsetof or the DIY variant (((size\_t)&((struct S\*)0)-\>m)), using current GCC versions. +Now to the annoying part: The GNU front-end for the C language folds offsetof-like expressions into constants. In the parser. IN. THE. PARSER. Any hooks/events available to plugins happen significantly later in the pipeline. Thus, SPSLR can not detect offsetofs, be it \_\_builtin\_offsetof or the DIY variants `(((size\_t)&((struct S\*)0)-\>m))`, using current GCC versions. To deal with this reliably, using a custom GCC build is the only way. The required patch is provided in this repo. To use it and install the custom gcc, use these commands: