diff options
author | Fangrui Song <i@maskray.me> | 2025-07-06 12:37:49 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-07-06 12:37:50 -0700 |
commit | 6d67794d164ebeedbd287816e1541964fb5d6c99 (patch) | |
tree | acf3c00f2964be6afd6d8d8f0ff2d6eddf84e706 /clang/lib/Basic/SourceManager.cpp | |
parent | c5fff132d019557e9cb028859ee989ea97b50e5c (diff) | |
download | llvm-6d67794d164ebeedbd287816e1541964fb5d6c99.zip llvm-6d67794d164ebeedbd287816e1541964fb5d6c99.tar.gz llvm-6d67794d164ebeedbd287816e1541964fb5d6c99.tar.bz2 |
X86MCCodeEmitter: Work around gcc/value-range.cc bug in GCC 13.3.0
GCC 13.3.0 -O3 miscompiles the `getImmFixupKind` after commit
c20379198c7fb66b9514d21ae1e07b0705e3e6fa (-O2 is good), leading to spurious
unreachable failure.
```
% ninja -C /tmp/out/custom-gcc-13 llc && /tmp/out/custom-gcc-13/bin/llc llvm/test/CodeGen/X86/2008-08-06-RewriterBug.ll -mtriple=i686
ninja: Entering directory `/tmp/out/custom-gcc-13'
ninja: no work to do.
Unknown immediate size
UNREACHABLE executed at /home/ray/llvm/llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h:904!
```
The latest releases/gcc-13 branch contains the fix
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109934#c6 , resolving this
miscompile.
`Desc.TSFlags` works around the bug.
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions