[clang] d369dd1 - [clang][Sparc] Enable IAS on the remaining OS's
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 1 23:23:11 PDT 2022
Author: Brad Smith
Date: 2022-04-02T02:18:30-04:00
New Revision: d369dd1c0660b9fde723215e82d82019a2d4c296
URL: https://github.com/llvm/llvm-project/commit/d369dd1c0660b9fde723215e82d82019a2d4c296
DIFF: https://github.com/llvm/llvm-project/commit/d369dd1c0660b9fde723215e82d82019a2d4c296.diff
LOG: [clang][Sparc] Enable IAS on the remaining OS's
Added:
Modified:
clang/lib/Driver/ToolChains/Gnu.cpp
clang/test/Driver/sparc-as.c
clang/test/Driver/sparcv9-as.c
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index bb3cba6dc4f77..fe4d997e1de24 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2746,6 +2746,9 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
case llvm::Triple::ppc64le:
case llvm::Triple::riscv32:
case llvm::Triple::riscv64:
+ case llvm::Triple::sparc:
+ case llvm::Triple::sparcel:
+ case llvm::Triple::sparcv9:
case llvm::Triple::systemz:
case llvm::Triple::mips:
case llvm::Triple::mipsel:
@@ -2754,13 +2757,6 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
case llvm::Triple::msp430:
case llvm::Triple::m68k:
return true;
- case llvm::Triple::sparc:
- case llvm::Triple::sparcel:
- case llvm::Triple::sparcv9:
- if (getTriple().isOSFreeBSD() || getTriple().isOSOpenBSD() ||
- getTriple().isOSSolaris())
- return true;
- return false;
default:
return false;
}
diff --git a/clang/test/Driver/sparc-as.c b/clang/test/Driver/sparc-as.c
index 65eeb4da39b40..8405cfd4159f5 100644
--- a/clang/test/Driver/sparc-as.c
+++ b/clang/test/Driver/sparc-as.c
@@ -1,7 +1,7 @@
-// Make sure Sparc does not use the integrated assembler by default.
+// Make sure Sparc does use the integrated assembler by default.
// RUN: %clang -target sparc-linux -### -c %s 2>&1 \
-// RUN: | FileCheck -check-prefix=NO-IAS %s
+// RUN: | FileCheck -check-prefix=IAS %s
// RUN: %clang -target sparc-linux -fintegrated-as -### -c %s 2>&1 \
// RUN: | FileCheck -check-prefix=IAS %s
diff --git a/clang/test/Driver/sparcv9-as.c b/clang/test/Driver/sparcv9-as.c
index 3b641cc98da30..5ce9abe44b737 100644
--- a/clang/test/Driver/sparcv9-as.c
+++ b/clang/test/Driver/sparcv9-as.c
@@ -1,7 +1,7 @@
-// Make sure SparcV9 does not use the integrated assembler by default.
+// Make sure SparcV9 does use the integrated assembler by default.
// RUN: %clang -target sparcv9-linux -### -c %s 2>&1 \
-// RUN: | FileCheck -check-prefix=NO-IAS %s
+// RUN: | FileCheck -check-prefix=IAS %s
// RUN: %clang -target sparcv9-linux -fintegrated-as -### -c %s 2>&1 \
// RUN: | FileCheck -check-prefix=IAS %s
More information about the cfe-commits
mailing list