HomePhabricator

[PowerPC] Default ppc64 linux-gnu/freebsd to -fno-PIC

Authored by MaskRay on Jan 7 2020, 2:21 PM.

Description

[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

Details

Committed
MaskRayJan 7 2020, 3:09 PM
Reviewer
Restricted Project
Differential Revision
D72363: [PowerPC] Default ppc64 linux-gnu/freebsd to -fno-PIC
Parents
rGb6598bcf4b81: [AArch64][GlobalISel] Fold a chain of two G_PTR_ADDs of constant offsets.
Branches
Unknown
Tags
Unknown