Skip to content

Commit 97f4d2c

Browse files
committedNov 27, 2015
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. llvm-svn: 254199
1 parent b25914e commit 97f4d2c

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed
 

‎clang/lib/Driver/ToolChains.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -2377,9 +2377,6 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
23772377
case llvm::Triple::ppc:
23782378
case llvm::Triple::ppc64:
23792379
case llvm::Triple::ppc64le:
2380-
case llvm::Triple::sparc:
2381-
case llvm::Triple::sparcel:
2382-
case llvm::Triple::sparcv9:
23832380
case llvm::Triple::systemz:
23842381
return true;
23852382
default:

‎clang/test/Driver/sparc-as.c

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Make sure Sparc does not use the integrated assembler by default.
2+
3+
// RUN: %clang -target sparc-linux -### -c %s 2>&1 \
4+
// RUN: | FileCheck -check-prefix=NO-IAS %s
5+
6+
// RUN: %clang -target sparc-linux -fintegrated-as -### -c %s 2>&1 \
7+
// RUN: | FileCheck -check-prefix=IAS %s
8+
9+
// RUN: %clang -target sparc-linux -fno-integrated-as -### -c %s 2>&1 \
10+
// RUN: | FileCheck -check-prefix=NO-IAS %s
11+
12+
// IAS-NOT: "-no-integrated-as"
13+
// NO-IAS: "-no-integrated-as"
14+
115
// RUN: %clang -no-canonical-prefixes -target sparc--netbsd \
216
// RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
317
// RUN: | FileCheck -check-prefix=SPARC %s

‎clang/test/Driver/sparcv9-as.c

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Make sure SparcV9 does not use the integrated assembler by default.
2+
3+
// RUN: %clang -target sparcv9-linux -### -c %s 2>&1 \
4+
// RUN: | FileCheck -check-prefix=NO-IAS %s
5+
6+
// RUN: %clang -target sparcv9-linux -fintegrated-as -### -c %s 2>&1 \
7+
// RUN: | FileCheck -check-prefix=IAS %s
8+
9+
// RUN: %clang -target sparcv9-linux -fno-integrated-as -### -c %s 2>&1 \
10+
// RUN: | FileCheck -check-prefix=NO-IAS %s
11+
12+
// IAS-NOT: "-no-integrated-as"
13+
// NO-IAS: "-no-integrated-as"
14+
115
// RUN: %clang -no-canonical-prefixes -target sparcv9--netbsd \
216
// RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
317
// RUN: | FileCheck -check-prefix=SPARC %s

0 commit comments

Comments
 (0)