HomePhabricator

This patch aims to match the changes introduced

Description

This patch aims to match the changes introduced
in gcc by https://gcc.gnu.org/ml/gcc-cvs/2018-04/msg00534.html.
The -mibt feature flag is being removed, and the -fcf-protection
option now also defines a CET macro and causes errors when used
on non-X86 targets, while X86 targets no longer check for -mibt
and -mshstk to determine if -fcf-protection is supported. -mshstk
is now used only to determine availability of shadow stack intrinsics.

Comes with an LLVM patch (D46882).

Patch by mike.dvoretsky

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

Details

Committed
aivchenkMay 18 2018, 4:56 AM
Differential Revision
D46881: [X86][CET] Changing -fcf-protection behavior to comply with gcc (clang part)
Branches
Unknown
Tags
Unknown