This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Default to -ffixed-x18 for Fuchsia
ClosedPublic

Authored by mcgrathr on Feb 5 2023, 3:19 PM.

Details

Summary

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

Diff Detail

Event Timeline

mcgrathr created this revision.Feb 5 2023, 3:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2023, 3:19 PM
mcgrathr requested review of this revision.Feb 5 2023, 3:19 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 5 2023, 3:19 PM
phosek accepted this revision.Feb 5 2023, 4:03 PM

LGTM

This revision is now accepted and ready to land.Feb 5 2023, 4:03 PM
jrtc27 added inline comments.Feb 5 2023, 4:33 PM
llvm/lib/Target/RISCV/RISCVSubtarget.cpp
16

Unrelated change

mcgrathr added inline comments.Feb 5 2023, 6:13 PM
llvm/lib/Target/RISCV/RISCVSubtarget.cpp
16

arcanist requested it via clang-format

MaskRay added inline comments.Feb 5 2023, 6:26 PM
llvm/lib/Target/RISCV/RISCVSubtarget.cpp
16

Rebase. I fixed it.

mcgrathr marked an inline comment as done.Feb 5 2023, 6:36 PM
mcgrathr updated this revision to Diff 494972.Feb 5 2023, 6:38 PM

rebased, added clang driver test vs -fsanitize=shadow-call-stack

This revision was landed with ongoing or failed builds.Feb 5 2023, 6:51 PM
This revision was automatically updated to reflect the committed changes.