r225212 - Use the integrated assembler by default on 32-bit PowerPC and SPARC
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Jan 5 15:35:16 PST 2015
Reverted in r225221 due to bot failures [1][2].
[1]: http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/22032
[2]: http://lab.llvm.org:8080/green/view/Clang/job/clang-stage1-cmake-RA-incremental_check/2357/
> On 2015-Jan-05, at 13:44, Brad Smith <brad at comstyle.com> wrote:
>
> Author: brad
> Date: Mon Jan 5 15:44:15 2015
> New Revision: 225212
>
> URL: http://llvm.org/viewvc/llvm-project?rev=225212&view=rev
> Log:
> Use the integrated assembler by default on 32-bit PowerPC and SPARC
>
> Modified:
> cfe/trunk/lib/Driver/ToolChains.cpp
> cfe/trunk/lib/Driver/ToolChains.h
> cfe/trunk/test/Driver/freebsd.c
> cfe/trunk/test/Driver/unknown-gcc-arch.c
>
> Modified: cfe/trunk/lib/Driver/ToolChains.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=225212&r1=225211&r2=225212&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Driver/ToolChains.cpp (original)
> +++ cfe/trunk/lib/Driver/ToolChains.cpp Mon Jan 5 15:44:15 2015
> @@ -2067,8 +2067,11 @@ bool Generic_GCC::IsIntegratedAssemblerD
> getTriple().getArch() == llvm::Triple::armeb ||
> getTriple().getArch() == llvm::Triple::thumb ||
> getTriple().getArch() == llvm::Triple::thumbeb ||
> + getTriple().getArch() == llvm::Triple::ppc ||
> getTriple().getArch() == llvm::Triple::ppc64 ||
> getTriple().getArch() == llvm::Triple::ppc64le ||
> + getTriple().getArch() == llvm::Triple::sparc ||
> + getTriple().getArch() == llvm::Triple::sparcv9 ||
> getTriple().getArch() == llvm::Triple::systemz;
> }
>
>
> Modified: cfe/trunk/lib/Driver/ToolChains.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.h?rev=225212&r1=225211&r2=225212&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Driver/ToolChains.h (original)
> +++ cfe/trunk/lib/Driver/ToolChains.h Mon Jan 5 15:44:15 2015
> @@ -534,17 +534,6 @@ public:
> return 2;
> }
>
> - virtual bool IsIntegratedAssemblerDefault() const override {
> - switch (getTriple().getArch()) {
> - case llvm::Triple::ppc:
> - case llvm::Triple::sparc:
> - case llvm::Triple::sparcv9:
> - return true;
> - default:
> - return Generic_ELF::IsIntegratedAssemblerDefault();
> - }
> - }
> -
> protected:
> Tool *buildAssembler() const override;
> Tool *buildLinker() const override;
> @@ -586,14 +575,6 @@ public:
> void
> AddClangCXXStdlibIncludeArgs(const llvm::opt::ArgList &DriverArgs,
> llvm::opt::ArgStringList &CC1Args) const override;
> - bool IsIntegratedAssemblerDefault() const override {
> - switch (getTriple().getArch()) {
> - case llvm::Triple::ppc:
> - return true;
> - default:
> - return Generic_ELF::IsIntegratedAssemblerDefault();
> - }
> - }
>
> bool UseSjLjExceptions() const override;
> bool isPIEDefault() const override;
> @@ -618,14 +599,6 @@ public:
> bool IsUnwindTablesDefault() const override {
> return true;
> }
> - bool IsIntegratedAssemblerDefault() const override {
> - switch (getTriple().getArch()) {
> - case llvm::Triple::ppc:
> - return true;
> - default:
> - return Generic_ELF::IsIntegratedAssemblerDefault();
> - }
> - }
>
> protected:
> Tool *buildAssembler() const override;
>
> Modified: cfe/trunk/test/Driver/freebsd.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/freebsd.c?rev=225212&r1=225211&r2=225212&view=diff
> ==============================================================================
> --- cfe/trunk/test/Driver/freebsd.c (original)
> +++ cfe/trunk/test/Driver/freebsd.c Mon Jan 5 15:44:15 2015
> @@ -128,11 +128,11 @@
> // RUN: | FileCheck --check-prefix=CHECK-LTO %s
> // CHECK-LTO: ld{{.*}}" "-plugin{{.*}}LLVMgold.so
>
> -// RUN: %clang -target sparc-unknown-freebsd8 %s -### -fpic 2>&1 \
> +// RUN: %clang -target sparc-unknown-freebsd8 %s -### -fpic -no-integrated-as 2>&1 \
> // RUN: | FileCheck --check-prefix=CHECK-SPARC-PIE %s
> // CHECK-SPARC-PIE: as{{.*}}" "-KPIC
>
> -// RUN: %clang -mcpu=ultrasparc -target sparc64-unknown-freebsd8 %s -### 2>&1 \
> +// RUN: %clang -mcpu=ultrasparc -target sparc64-unknown-freebsd8 %s -### -no-integrated-as 2>&1 \
> // RUN: | FileCheck --check-prefix=CHECK-SPARC-CPU %s
> // CHECK-SPARC-CPU: cc1{{.*}}" "-target-cpu" "ultrasparc"
> // CHECK-SPARC-CPU: as{{.*}}" "-Av9a
>
> Modified: cfe/trunk/test/Driver/unknown-gcc-arch.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/unknown-gcc-arch.c?rev=225212&r1=225211&r2=225212&view=diff
> ==============================================================================
> --- cfe/trunk/test/Driver/unknown-gcc-arch.c (original)
> +++ cfe/trunk/test/Driver/unknown-gcc-arch.c Mon Jan 5 15:44:15 2015
> @@ -24,11 +24,11 @@
>
>
> // RUN: %clang -target powerpc64-unknown-unknown -c -x assembler %s -### -m32 \
> -// RUN: 2>&1 | FileCheck -check-prefix=PPC64-M32 %s
> +// RUN: -no-integrated-as 2>&1 | FileCheck -check-prefix=PPC64-M32 %s
> // PPC64-M32: {{.*as.*-a32}}
>
> // RUN: %clang -target powerpc-unknown-unknown -c -x assembler %s -### 2>&1 \
> -// RUN: | FileCheck -check-prefix=PPC %s
> +// RUN: -no-integrated-as | FileCheck -check-prefix=PPC %s
> // PPC: {{.*as.*-a32}}
>
> // RUN: %clang -target sparc64-unknown-unknown -no-integrated-as -c -x assembler %s -### -m32 2>&1 \
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list