[all-commits] [llvm/llvm-project] fb6e80: [test] Move ppc64 tests from test/Preprocessor/ini...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jan 7 11:41:09 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fb6e80da446b94d42d484910ea28a82b4900f01f
      https://github.com/llvm/llvm-project/commit/fb6e80da446b94d42d484910ea28a82b4900f01f
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-01-07 (Tue, 07 Jan 2020)

  Changed paths:
    A clang/test/Preprocessor/init-ppc64.c
    M clang/test/Preprocessor/init.c

  Log Message:
  -----------
  [test] Move ppc64 tests from test/Preprocessor/init.c to init-ppc64.c


  Commit: 8edf759ca7e1ceadb8bd4c0701f08c48850c26e7
      https://github.com/llvm/llvm-project/commit/8edf759ca7e1ceadb8bd4c0701f08c48850c26e7
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-01-07 (Tue, 07 Jan 2020)

  Changed paths:
    M clang/lib/Basic/Targets/PPC.h
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/ppc-abi.c
    M clang/test/Preprocessor/init-ppc64.c
    M llvm/include/llvm/ADT/Triple.h
    M llvm/lib/Support/Triple.cpp
    M llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
    M llvm/test/CodeGen/PowerPC/ppc64-elf-abi.ll

  Log Message:
  -----------
  [PowerPC][Triple] Use elfv2 on freebsd>=13 and linux-musl

Summary:
Every powerpc64le platform uses elfv2.

For powerpc64, the environments "elfv1" and "elfv2" were added for
FreeBSD ELFv1->ELFv2 migration in D61950.  FreeBSD developers have
decided to use OS versions to select ABI, and no one is relying on the
environments.

Also use elfv2 on powerpc64-linux-musl.

Users can always use -mabi=elfv1 and -mabi=elfv2 to override the default
ABI.

Reviewed By: adalava

Differential Revision: https://reviews.llvm.org/D72352


Compare: https://github.com/llvm/llvm-project/compare/45588428910a...8edf759ca7e1


More information about the All-commits mailing list