[PATCH] Use the integrated assembler by default on OpenBSD/sparc.
Brad Smith
brad at comstyle.com
Fri Jul 11 15:45:25 PDT 2014
Use the integrated assembler by default on OpenBSD/sparc.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
Index: lib/Driver/ToolChains.h
===================================================================
--- lib/Driver/ToolChains.h (revision 212838)
+++ lib/Driver/ToolChains.h (working copy)
@@ -538,7 +538,9 @@
}
virtual bool IsIntegratedAssemblerDefault() const {
- if (getTriple().getArch() == llvm::Triple::ppc)
+ if (getTriple().getArch() == llvm::Triple::ppc ||
+ getTriple().getArch() == llvm::Triple::sparc ||
+ getTriple().getArch() == llvm::Triple::sparcv9)
return true;
return Generic_ELF::IsIntegratedAssemblerDefault();
}
Index: test/Driver/openbsd.c
===================================================================
--- test/Driver/openbsd.c (revision 212838)
+++ test/Driver/openbsd.c (working copy)
@@ -60,7 +60,12 @@
// CHECK-MIPS64EL: as{{.*}}" "-mabi" "64" "-EL"
// CHECK-MIPS64EL-PIC: as{{.*}}" "-mabi" "64" "-EL" "-KPIC"
-// Check that the integrated assembler is enabled for PowerPC
+// Check that the integrated assembler is enabled for PowerPC and SPARC
// RUN: %clang -target powerpc-unknown-openbsd -### -c %s 2>&1 \
-// RUN: | FileCheck -check-prefix=CHECK-POWERPC-AS %s
-// CHECK-POWERPC-AS-NOT: "-no-integrated-as"
+// RUN: | FileCheck -check-prefix=CHECK-IAS %s
+// RUN: %clang -target sparc-unknown-openbsd -### -c %s 2>&1 \
+// RUN: | FileCheck -check-prefix=CHECK-IAS %s
+// RUN: %clang -target sparc64-unknown-openbsd -### -c %s 2>&1 \
+// RUN: | FileCheck -check-prefix=CHECK-IAS %s
+// CHECK-IAS-NOT: "-no-integrated-as"
+
More information about the cfe-commits
mailing list