Updated README

This commit is contained in:
York Jasper Niebuhr 2025-10-28 22:33:57 +01:00
parent cc1f94a587
commit 280c41367c

View File

@ -31,7 +31,7 @@ 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 variants (`((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: To deal with this reliably, using a custom GCC build is necessary. The required patch is provided in this repo. To use it and install the custom gcc, use these commands:
```bash ```bash
git clone git://gcc.gnu.org/git/gcc.git git clone git://gcc.gnu.org/git/gcc.git