Make the integrated assembler the default for cygwin/mingw too.

The integrated assembler was already the default for win32. It is now able
to handle a clang bootstrap on mingw, so make it the default.

llvm-svn: 195676
This commit is contained in:
Rafael Espindola 2013-11-25 18:50:53 +00:00
parent 90f8c6fb31
commit a8b3b680c3
4 changed files with 18 additions and 13 deletions

View File

@ -1612,6 +1612,11 @@ bool Generic_GCC::isPICDefaultForced() const {
return false;
}
bool Generic_GCC::IsIntegratedAssemblerDefault() const {
return getTriple().getArch() == llvm::Triple::x86 ||
getTriple().getArch() == llvm::Triple::x86_64;
}
/// Hexagon Toolchain
std::string Hexagon_TC::GetGnuDir(const std::string &InstalledDir) {

View File

@ -164,6 +164,7 @@ public:
virtual bool isPICDefault() const;
virtual bool isPIEDefault() const;
virtual bool isPICDefaultForced() const;
virtual bool IsIntegratedAssemblerDefault() const;
protected:
virtual Tool *getTool(Action::ActionClass AC) const;
@ -414,10 +415,9 @@ public:
: Generic_GCC(D, Triple, Args) {}
virtual bool IsIntegratedAssemblerDefault() const {
// Default integrated assembler to on for x86.
return (getTriple().getArch() == llvm::Triple::aarch64 ||
getTriple().getArch() == llvm::Triple::x86 ||
getTriple().getArch() == llvm::Triple::x86_64);
if (getTriple().getArch() == llvm::Triple::aarch64)
return true;
return Generic_GCC::IsIntegratedAssemblerDefault();
}
};

View File

@ -1,5 +1,5 @@
// Basic binding.
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings %s 2>&1 | FileCheck %s --check-prefix=CHECK01
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -no-integrated-as %s 2>&1 | FileCheck %s --check-prefix=CHECK01
// CHECK01: "clang", inputs: ["{{.*}}bindings.c"], output: "{{.*}}.s"
// CHECK01: "GNU::Assemble", inputs: ["{{.*}}.s"], output: "{{.*}}.o"
// CHECK01: "gcc::Link", inputs: ["{{.*}}.o"], output: "a.out"

View File

@ -1,17 +1,17 @@
// RUN: %clang -target x86_64-unknown-unknown -c -x assembler %s -### 2>&1 \
// RUN: | FileCheck -check-prefix=X86_64 %s
// RUN: %clang -target x86_64-unknown-unknown -no-integrated-as -c \
// RUN: -x assembler %s -### 2>&1 | FileCheck -check-prefix=X86_64 %s
// X86_64: {{.*as.*--64}}
// RUN: %clang -target x86_64-unknown-unknown -c -x assembler %s -### -m32 2>&1 \
// RUN: | FileCheck -check-prefix=X86_64-M32 %s
// RUN: %clang -target x86_64-unknown-unknown -c -x assembler %s -### -m32 \
// RUN -no-integrated-as 2>&1 | FileCheck -check-prefix=X86_64-M32 %s
// X86_64-M32: {{.*as.*--32}}
// RUN: %clang -target i386-unknown-unknown -c -x assembler %s -### 2>&1 \
// RUN: | FileCheck -check-prefix=I386 %s
// RUN: %clang -target i386-unknown-unknown -c -x assembler %s -### \
// RUN: -no-integrated-as 2>&1| FileCheck -check-prefix=I386 %s
// I386: {{.*as.*--32}}
// RUN: %clang -target i386-unknown-unknown -c -x assembler %s -### -m64 2>&1 \
// RUN: | FileCheck -check-prefix=I386-M64 %s
// RUN: %clang -target i386-unknown-unknown -c -x assembler %s -### -m64 \
// RUN: -no-integrated-as 2>&1 | FileCheck -check-prefix=I386-M64 %s
// I386-M64: {{.*as.*--64}}