mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
GCC bug 119085, which affects versions 13.0--15.1, is being triggered by the C backend, resulting in a (small but critical) miscompilation in zig2. Unfortunately, we can't really work around that bug without a command-line flag, because the bug is sensitive to things like the order in which `struct` types are defined. Therefore, I have added an option to `bootstrap.c` which causes it to pass the appropriate flag to `gcc` to disable the optimization pass in question. This flag can likely be removed in future, once the affected GCC versions become less common. At least one of our x86_64-linux CI machines is using an affected GCC version, so I also updated the relevant CI script to pass this flag when testing no-LLVM bootstrap. CMakeLists also has a workaround, but no user intervention is required there: the GCC version range is automatically detected by CMakeLists. |
||
|---|---|---|
| .. | ||
| aarch64-freebsd-debug.sh | ||
| aarch64-freebsd-release.sh | ||
| aarch64-linux-debug.sh | ||
| aarch64-linux-release.sh | ||
| aarch64-macos-debug.sh | ||
| aarch64-macos-release.sh | ||
| aarch64-netbsd-debug.sh | ||
| aarch64-netbsd-release.sh | ||
| aarch64-windows.ps1 | ||
| loongarch64-linux-debug.sh | ||
| loongarch64-linux-release.sh | ||
| powerpc64le-linux-debug.sh | ||
| powerpc64le-linux-release.sh | ||
| riscv64-linux-debug.sh | ||
| riscv64-linux-release.sh | ||
| s390x-linux-debug.sh | ||
| s390x-linux-release.sh | ||
| x86_64-freebsd-debug.sh | ||
| x86_64-freebsd-release.sh | ||
| x86_64-linux-debug-llvm.sh | ||
| x86_64-linux-debug.sh | ||
| x86_64-linux-release.sh | ||
| x86_64-netbsd-debug.sh | ||
| x86_64-netbsd-release.sh | ||
| x86_64-openbsd-debug.sh | ||
| x86_64-openbsd-release.sh | ||
| x86_64-windows-debug.ps1 | ||
| x86_64-windows-release.ps1 | ||