aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-11-14 00:43:40 -0800
committerGitHub <noreply@github.com>2023-11-14 00:43:40 -0800
commit47eeee297775347cbdb7624d6a766c2a3eec4a59 (patch)
treed419178ad947d1d4493fb1646996ce7fe58d05b4 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parent6229cd0272a84bbfaeda171c3d502e864e85e173 (diff)
downloadllvm-47eeee297775347cbdb7624d6a766c2a3eec4a59.zip
llvm-47eeee297775347cbdb7624d6a766c2a3eec4a59.tar.gz
llvm-47eeee297775347cbdb7624d6a766c2a3eec4a59.tar.bz2
[Driver] Default LoongArch to -fno-direct-access-external-data for non-PIC (#72221)
For -fno-pic, if an extern variable is defined in a DSO, a copy relocation will be needed. However, loongarch*-linux does not and will not support copy relocations. Change Driver to default to -fno-direct-access-external-data for LoongArch && non-PIC. Keep Frontend conditions unchanged (-fdirect-access-external-data || -fno-direct-access-external-data && PIC>0 => direct access). Fix #71645
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions