[all-commits] [llvm/llvm-project] 5d585c: [PowerPC] Use member function to determine PowerPC...

Brad Smith via All-commits all-commits at lists.llvm.org
Tue Feb 21 11:14:51 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d585c9dd07d0df4d450e2b1ba61fb17a5153aac
  Author: Brad Smith <brad at comstyle.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/PPC.cpp
    M llvm/include/llvm/TargetParser/Triple.h
    M llvm/lib/Target/PowerPC/PPCSubtarget.cpp

  Log Message:
  [PowerPC] Use member function to determine PowerPC Secure PLT

Add a member function isPPC32SecurePlt() to determine whether Secure
PLT is used by the target 32-bit PowerPC operating environment.

Reviewed By: dim, maskray

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

  Commit: 2a2c0fd96757871f4e8052624000c208cc574fdf
  Author: Brad Smith <brad at comstyle.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/lib/Driver/ToolChains/FreeBSD.cpp
    M clang/lib/Driver/ToolChains/FreeBSD.h
    M clang/test/Driver/constructors.c
    M clang/test/Driver/freebsd.c
    M clang/test/Driver/freebsd.cpp

  Log Message:
  [Driver][FreeBSD] Correct driver behavior if a triple is provided without a version

While looking at other usage of getOSMajorVersion() I noticed if a version number is not
included in the FreeBSD triple it won't include the --hash-style=both linker option or
not disable the use of .init_array. Without a version should be the latest.

FreeBSD 8 and 9 are no longer supported. So simplify things with the version handling
as well.

Reviewed By: dim

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

Compare: https://github.com/llvm/llvm-project/compare/677ea15e350b...2a2c0fd96757

More information about the All-commits mailing list