]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Update documents for fcf-protection=
authorliuhongt <hongtao.liu@intel.com>
Mon, 8 Jan 2024 06:04:38 +0000 (14:04 +0800)
committerliuhongt <hongtao.liu@intel.com>
Fri, 12 Jan 2024 03:18:26 +0000 (11:18 +0800)
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.

gcc/doc/invoke.texi

index c1bb54b4109a2d407fd4ccd896c131a8ab019ae4..b7a201317cea4e1fcfc77cb5f76081a5782a22d3 100644 (file)
@@ -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