aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2022-05-05 10:30:10 +0100
committerHafiz Abid Qadeer <abidh@codesourcery.com>2022-05-05 11:05:27 +0100
commit6f095babc2b7d564168c7afc5bf6afb2188fd6b4 (patch)
tree8d93c407b1a6356fd3a7dd4f4b49c52bc51f76cb /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parentdf5801806d03c22099c85942134ca3004776016b (diff)
downloadllvm-6f095babc2b7d564168c7afc5bf6afb2188fd6b4.zip
llvm-6f095babc2b7d564168c7afc5bf6afb2188fd6b4.tar.gz
llvm-6f095babc2b7d564168c7afc5bf6afb2188fd6b4.tar.bz2
sanitizer_common: Define FP_XSTATE_MAGIC1 for old glibc
D116208 (commit 1298273e8206a8fc2) added FP_XSTATE_MAGIC1. However, when building with glibc < 2.16 for backward-dependency compatibility, it is not defined - and the build breaks. Note: The define comes from Linux's asm/sigcontext.h but the file uses signal.h which includes glibc's bits/sigcontext.h - which is synced from the kernel's file but lags behind. Solution: For backward compatility with ancient systems, define FP_XSTATE_MAGIC1 if undefined. //For the old systems, we were building with Linux kernel 3.19 but to support really old glibc systems, we build with a sysroot of glibc 2.12. While our kernel (and the users' kernels) have FP_XSTATE_MAGIC1, glibc 2.12 is too old. – With this patch, building the sanitizer libs works again. This showed up for us today as GCC mainline/13 has now synced the sanitizer libs.// Reviewed By: #sanitizers, vitalybuka Differential Revision: https://reviews.llvm.org/D124927
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions