Issue 233826
Summary [AArch64] Two-stage clang build segfaults in PEI on compiler-rt builtins (regression in 13d5d2fe8d53..9a028ba55e91)
Labels backend:AArch64
Assignees
Reporter sylvestre
    Since 9a028ba55e91 (2026-10-20), the Debian two-stage build (stage1 clang builds stage2 clang) on aarch64-linux-gnu fails: the **stage2** clang segfaults while building the compiler-rt builtins (`__divtf3`, `__multf3`):

```
1. <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module '/build/source/compiler-rt/lib/builtins/divtf3.c'.
4.    Running pass 'Prologue/Epilogue Insertion & Frame Finalization' on function '@__divtf3'
clang: error: clang frontend command failed due to signal (use -v to see invocation)
```

Flags: `--target=aarch64-unknown-linux-gnu -O2 -g1 -march=armv8-a -fPIC -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard -fomit-frame-pointer -fvisibility=hidden -fno-builtin`

- 13d5d2fe8d53 builds fine on the same configuration; 9a028ba55e91 fails (deterministic, two files crash the same way).
- An assertion-enabled `llc` at 9a028ba55e91 (built with clang-22 on x86_64) compiles the same IR without error, so this looks like stage1 miscompiling stage2 rather than a direct codegen crash on this input.
- 0d917205f6b1 (AArch64 FrameLowering NFC refactor) checked: `llc` output is identical with/without it across `llvm/test/CodeGen/AArch64`.
- Remaining candidates in the window that change optimisation: 980be5863a84, 89e3afe2b380 (SLP), 0f0a1a387d61 (InstCombine), fe882c6fca75 (cost model).

Build log: https://llvm-jenkins.debian.net/job/llvm-toolchain-binaries/architecture=arm64,distribution=unstable,label=arm64/3124/console

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to