From: uros Date: Tue, 2 Aug 2011 09:01:37 +0000 (+0000) Subject: PR target/47766 X-Git-Tag: upstream/4.9.2~18892 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d57f0d3ac1f5705a995e89d2987d188af4e01b9;p=platform%2Fupstream%2Flinaro-gcc.git PR target/47766 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value. (stack_protect_test): The pattern compares ptr_mode value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177096 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f8e25c0..55ba5b0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-08-02 Uros Bizjak + + PR target/47766 + * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value. + (stack_protect_test): The pattern compares ptr_mode value. + 2011-08-02 Alan Modra * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE @@ -5,8 +11,7 @@ 2011-08-01 H.J. Lu - * config/i386/lzcntintrin.h (__lzcnt64): Replace long with - long long. + * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long. 2011-08-01 Sebastian Pop Joseph Myers diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 1f08dae..3eae212 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -5557,7 +5557,7 @@ will be emitted, followed by a store of the value to the memory operand. @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 @@ If this pattern is not defined, then a plain move pattern is generated. @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.