Document refactoring of the option -fcf-protection=x.

Message ID 20240110074457.1749380-1-hongtao.liu@intel.com
State Unresolved
Headers
Series Document refactoring of the option -fcf-protection=x. |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

liuhongt Jan. 10, 2024, 7:44 a.m. UTC
  To override -fcf-protection, -fcf-protection=none needs to be added
and then with -fcf-protection=xxx.
---
 htdocs/gcc-14/changes.html | 6 ++++++
 1 file changed, 6 insertions(+)
  

Comments

Gerald Pfeifer Jan. 12, 2024, 5:57 a.m. UTC | #1
On Wed, 10 Jan 2024, liuhongt wrote:
> To override -fcf-protection, -fcf-protection=none needs to be added
> and then with -fcf-protection=xxx.

I'm afraid I am struggling with the English of this, but need more time to 
untangle and suggest an alternative.

For the time being I pushed the follow-up below. Note that it's
  <code>-fcf-protection</code>
not
  <code>-fcf-protection</code>
i.e., </code> closes <code>.

Gerald


commit f834612fa014a65bd0a0380d2167d9ee05626a64
Author: Gerald Pfeifer <gerald@pfeifer.com>
Date:   Fri Jan 12 13:54:52 2024 +0800

    gcc-14: Fix markup around -fcf-protection

diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index ba57abe8..9c9dfa44 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -41,9 +41,9 @@ a work-in-progress.</p>
       identify all such cases in the source code and modify them.
   </li>
   <li><a href="https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html"><code>-fcf-protection=[full|branch|return|none|check]</code></a>
-      is refactored, to override <code>-fcf-protection<code>,
-      <code>-fcf-protection=none<code> needs to be added and then
-      with <code>-fcf-protection=xxx<code>.
+      is refactored, to override <code>-fcf-protection</code>,
+      <code>-fcf-protection=none</code> needs to be added and then
+      with <code>-fcf-protection=xxx</code>.
   </li>
 
 </ul>
  

Patch

diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index e3a68998..72b0d291 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -40,6 +40,12 @@  a work-in-progress.</p>
       <a href="https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wflex-array-member-not-at-end"><code>-Wflex-array-member-not-at-end</code></a> to
       identify all such cases in the source code and modify them.
   </li>
+  <li><a href="https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html"><code>-fcf-protection=[full|branch|return|none|check]</code></a>
+      is refactored, to override <code>-fcf-protection<code>,
+      <code>-fcf-protection=none<code> needs to be added and then
+      with <code>-fcf-protection=xxx<code>.
+  </li>
+
 </ul>