diff options
| author | Fangrui Song <i@maskray.me> | 2023-07-17 16:42:11 -0700 |
|---|---|---|
| committer | Fangrui Song <i@maskray.me> | 2023-07-17 16:42:11 -0700 |
| commit | 8f90a5cc45db3267dbc512d512dcb9e4e9193c9c (patch) | |
| tree | ad408bc8d09e94f5ec8cf2d26286e719258c13c9 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | cd69b0cc88bccf80e11c6d95255139b5db62b17c (diff) | |
[llvm-exegesis] Guard __builtin_thread_pointer use with __has_builtin
While Clang targets have supported __builtin_thread_pointer for a very
long time (e.g., 2007 for AArch32, 2015 for AArch64), for some GCC
ports, the support is very new (11.0 for x86[1], while we need to
support GCC 7), and many ports haven't implemented
__builtin_thread_pointer yet (m68k, powerpc, etc).
[1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96955
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
