Patchwork [DOC] : Sync stack_protect_{set,test} documentation with reality

login
register
mail settings
Submitter Uros Bizjak
Date Aug. 2, 2011, 9:05 a.m.
Message ID <CAFULd4Z8nVmk1g9VihNKX7=Mq-ztjVY8DQ7AyCKX0R2rSCT2yA@mail.gmail.com>
Download mbox | patch
Permalink /patch/107863/
State New
Headers show

Comments

Uros Bizjak - Aug. 2, 2011, 9:05 a.m.
Hello!

2011-08-02  Uros Bizjak  <ubizjak@gmail.com>

	PR target/47766
	* doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
	(stack_protect_test): The pattern compares ptr_mode value.

Tested on x86_64-pc-linux-gnu, committed to mainline (and soon release
branches).

Uros.

Patch

Index: doc/md.texi
===================================================================
--- doc/md.texi	(revision 177084)
+++ doc/md.texi	(working copy)
@@ -5557,7 +5557,7 @@ 
 @cindex @code{stack_protect_set} instruction pattern
 @item @samp{stack_protect_set}

-This pattern, if defined, moves a @code{Pmode} value from the memory
+This pattern, if defined, moves a @code{ptr_mode} value from the memory
 in operand 1 to the memory in operand 0 without leaving the value in
 a register afterward.  This is to avoid leaking the value some place
 that an attacker might use to rewrite the stack guard slot after
@@ -5568,7 +5568,7 @@ 
 @cindex @code{stack_protect_test} instruction pattern
 @item @samp{stack_protect_test}

-This pattern, if defined, compares a @code{Pmode} value from the
+This pattern, if defined, compares a @code{ptr_mode} value from the
 memory in operand 1 with the memory in operand 0 without leaving the
 value in a register afterward and branches to operand 2 if the values
 weren't equal.