r349691 - Disable -faddsig by default for PS4 target.
Douglas Yung via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 19 14:45:26 PST 2018
Author: dyung
Date: Wed Dec 19 14:45:26 2018
New Revision: 349691
URL: http://llvm.org/viewvc/llvm-project?rev=349691&view=rev
Log:
Disable -faddsig by default for PS4 target.
Modified:
cfe/trunk/lib/Driver/ToolChains/Clang.cpp
cfe/trunk/test/Driver/addrsig.c
Modified: cfe/trunk/lib/Driver/ToolChains/Clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Clang.cpp?rev=349691&r1=349690&r2=349691&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Clang.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Clang.cpp Wed Dec 19 14:45:26 2018
@@ -5273,6 +5273,7 @@ void Clang::ConstructJob(Compilation &C,
if (Args.hasFlag(options::OPT_faddrsig, options::OPT_fno_addrsig,
(TC.getTriple().isOSBinFormatELF() ||
TC.getTriple().isOSBinFormatCOFF()) &&
+ !TC.getTriple().isPS4() &&
TC.useIntegratedAs() &&
RawTriple.getOS() != llvm::Triple::NetBSD))
CmdArgs.push_back("-faddrsig");
Modified: cfe/trunk/test/Driver/addrsig.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/addrsig.c?rev=349691&r1=349690&r2=349691&view=diff
==============================================================================
--- cfe/trunk/test/Driver/addrsig.c (original)
+++ cfe/trunk/test/Driver/addrsig.c Wed Dec 19 14:45:26 2018
@@ -4,6 +4,7 @@
// RUN: %clang -### -target x86_64-unknown-linux -fno-integrated-as -faddrsig -c %s 2>&1 | FileCheck -check-prefix=ADDRSIG %s
// RUN: %clang -### -target x86_64-unknown-linux -fno-addrsig -c %s 2>&1 | FileCheck -check-prefix=NO-ADDRSIG %s
// RUN: %clang -### -target x86_64-apple-darwin -c %s 2>&1 | FileCheck -check-prefix=NO-ADDRSIG %s
+// RUN: %clang -### -target x86_64-scei-ps4 -c %s 2>&1 | FileCheck -check-prefix=NO-ADDRSIG %s
// ADDRSIG: -faddrsig
// NO-ADDRSIG-NOT: -faddrsig
More information about the cfe-commits
mailing list