[all-commits] [llvm/llvm-project] 03ff43: [RISCV] Default to -ffixed-x18 for Fuchsia

Roland McGrath via All-commits all-commits at lists.llvm.org
Sun Feb 5 18:51:39 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 03ff435da540b0feb8272784e05ce742831d5bc2
      https://github.com/llvm/llvm-project/commit/03ff435da540b0feb8272784e05ce742831d5bc2
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2023-02-05 (Sun, 05 Feb 2023)

  Changed paths:
    M clang/lib/Driver/SanitizerArgs.cpp
    M clang/test/Driver/sanitizer-ld.c
    M llvm/include/llvm/TargetParser/RISCVTargetParser.h
    M llvm/lib/Target/RISCV/RISCVSubtarget.cpp
    M llvm/lib/TargetParser/RISCVTargetParser.cpp
    M llvm/test/CodeGen/RISCV/reserved-regs.ll

  Log Message:
  -----------
  [RISCV] Default to -ffixed-x18 for Fuchsia

Fuchsia's ABI always reserves the x18 (s2) register for the
ShadowCallStack ABI, even when -fsanitize=shadow-call-stack is
not enabled.

Reviewed By: phosek

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




More information about the All-commits mailing list