diff options
author | liuhongt <hongtao.liu@intel.com> | 2024-01-08 14:04:38 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2024-01-12 11:18:26 +0800 |
commit | 75ed46558a2e085ba12641a47112e37f114faee0 (patch) | |
tree | 0528b2a97bc46f93e363ad2793939ddc784f5cd2 | |
parent | d79629b316f48c45c0a38d10b8fef1a84beceb46 (diff) | |
download | gcc-75ed46558a2e085ba12641a47112e37f114faee0.zip gcc-75ed46558a2e085ba12641a47112e37f114faee0.tar.gz gcc-75ed46558a2e085ba12641a47112e37f114faee0.tar.bz2 |
Update documents for fcf-protection=
After r14-2692-g1c6231c05bdcca, the option is defined as EnumSet and
-fcf-protection=branch won't unset any others bits since they're in
different groups. So to override -fcf-protection, an explicit
-fcf-protection=none needs to be added and then with
-fcf-protection=XXX
gcc/ChangeLog:
PR target/113039
* doc/invoke.texi (fcf-protection=): Update documents.
-rw-r--r-- | gcc/doc/invoke.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index c1bb54b..b7a2013 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -17734,6 +17734,9 @@ function. The value @code{full} is an alias for specifying both @code{branch} and @code{return}. The value @code{none} turns off instrumentation. +To override @option{-fcf-protection}, @option{-fcf-protection=none} +needs to be added and then with @option{-fcf-protection=xxx}. + The value @code{check} is used for the final link with link-time optimization (LTO). An error is issued if LTO object files are compiled with different @option{-fcf-protection} values. The |