From 4f0940af858cd1db36af3adf5d3a36d89d96daa8 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Fri, 27 Nov 2015 13:16:33 +0000 Subject: [PATCH] Revert Sparc and SparcV9 to external assembler. Now that the CPU handling is corrected, the primary reason for forcing IAS as default is gone and the remaining issues are still somewhat problematic in common situations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254199 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ToolChains.cpp | 3 --- test/Driver/sparc-as.c | 14 ++++++++++++++ test/Driver/sparcv9-as.c | 14 ++++++++++++++ 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index b7984c5482..fe195f3606 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -2377,9 +2377,6 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const { case llvm::Triple::ppc: case llvm::Triple::ppc64: case llvm::Triple::ppc64le: - case llvm::Triple::sparc: - case llvm::Triple::sparcel: - case llvm::Triple::sparcv9: case llvm::Triple::systemz: return true; default: diff --git a/test/Driver/sparc-as.c b/test/Driver/sparc-as.c index d44e8453bd..5b939956cb 100644 --- a/test/Driver/sparc-as.c +++ b/test/Driver/sparc-as.c @@ -1,3 +1,17 @@ +// Make sure Sparc does not use the integrated assembler by default. + +// RUN: %clang -target sparc-linux -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=NO-IAS %s + +// RUN: %clang -target sparc-linux -fintegrated-as -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=IAS %s + +// RUN: %clang -target sparc-linux -fno-integrated-as -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=NO-IAS %s + +// IAS-NOT: "-no-integrated-as" +// NO-IAS: "-no-integrated-as" + // RUN: %clang -no-canonical-prefixes -target sparc--netbsd \ // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=SPARC %s diff --git a/test/Driver/sparcv9-as.c b/test/Driver/sparcv9-as.c index 9e6249c575..3b641cc98d 100644 --- a/test/Driver/sparcv9-as.c +++ b/test/Driver/sparcv9-as.c @@ -1,3 +1,17 @@ +// Make sure SparcV9 does not use the integrated assembler by default. + +// RUN: %clang -target sparcv9-linux -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=NO-IAS %s + +// RUN: %clang -target sparcv9-linux -fintegrated-as -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=IAS %s + +// RUN: %clang -target sparcv9-linux -fno-integrated-as -### -c %s 2>&1 \ +// RUN: | FileCheck -check-prefix=NO-IAS %s + +// IAS-NOT: "-no-integrated-as" +// NO-IAS: "-no-integrated-as" + // RUN: %clang -no-canonical-prefixes -target sparcv9--netbsd \ // RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=SPARC %s