[all-commits] [llvm/llvm-project] bfe071: [ARM][clang] Option b-key must not affect __ARM_FE...

Ties Stuij via All-commits all-commits at lists.llvm.org
Thu Dec 9 05:38:21 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bfe07195bb1f517b2809107098b91767ad8c9460
      https://github.com/llvm/llvm-project/commit/bfe07195bb1f517b2809107098b91767ad8c9460
  Author: Ties Stuij <ties.stuij at arm.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M clang/lib/Basic/Targets/ARM.cpp
    M clang/test/Preprocessor/arm-target-features.c

  Log Message:
  -----------
  [ARM][clang] Option b-key must not affect __ARM_FEATURE_PAC_DEFAULT

When using -mbranch-protection=pac-ret+b-key, macro __ARM_FEATURE_PAC_DEFAULT
should still have the value corresponding to a-key, because b-key is only valid
for AArch64.

This patch is part of a series that adds support for the PACBTI-M extension of
the Armv8.1-M architecture, as detailed here:

https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/armv8-1-m-pointer-authentication-and-branch-target-identification-extension

The PACBTI-M specification can be found in the Armv8-M Architecture Reference
Manual:

https://developer.arm.com/documentation/ddi0553/latest

The following people contributed to this patch:

- Victor Campos

Reviewed By: danielkiss

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




More information about the All-commits mailing list