[all-commits] [llvm/llvm-project] 907a0c: [PowerPC] Default ppc64 linux-gnu/freebsd to -fno-PIC
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Jan 7 15:09:28 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 907a0cadb2c807d86d3150f2397e6697ba4676df
https://github.com/llvm/llvm-project/commit/907a0cadb2c807d86d3150f2397e6697ba4676df
Author: Fangrui Song <maskray at google.com>
Date: 2020-01-07 (Tue, 07 Jan 2020)
Changed paths:
M clang/lib/Driver/ToolChains/Gnu.cpp
M clang/test/Driver/ppc-abi.c
Log Message:
-----------
[PowerPC] Default ppc64 linux-gnu/freebsd to -fno-PIC
According to D53384, the default was switched from -fno-PIC to -fPIC to
work around a -fsanitize=leak bug on big-endian.
This gratuitous difference between little-endian and big-endian is
undesired, and not acceptable on powerpc64-unknown-freebsd. If
-fsanitize=leak still has the problem, we should consider defaulting to
-fPIC/-fPIE only when -fsanitize=leak is specified (see SanitizerArgs::requiresPIE())
powerpc64-ibm-aix is unaffected: it still defaults to -fPIC.
powerpc64-linux-musl is unaffected (-fPIE since D39588): it still defaults to -fPIE.
Reviewed By: #powerpc, jhibbits
Differential Revision: https://reviews.llvm.org/D72363
More information about the All-commits
mailing list