Revert r189513.
authorKirill Yukhin <kirill.yukhin@intel.com>
Mon, 16 Jul 2012 14:08:42 +0000 (14:08 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Mon, 16 Jul 2012 14:08:42 +0000 (14:08 +0000)
From-SVN: r189538

gcc/ChangeLog
gcc/config/i386/i386.md

index bffd7bce32de981efa754fd8ebd2fa7e1d8bbc62..b85d46003185b69c40e765b8c860604ac2145f22 100644 (file)
@@ -1,3 +1,16 @@
+2012-07-16  Kirill Yukhin  <kirill.yukhin@intel.com>
+
+       Revert
+       2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
+
+       * config/i386/i386.md (stack_protect_set): Disable the pattern
+       for Android since Android libc (bionic) does not provide random
+       value for stack protection guard at gs:0x14. Guard value
+       will be provided from external symbol (default implementation).
+       (stack_protect_set_<mode>): Likewise.
+       (stack_protect_test): Likewise.
+       (stack_protect_test_<mode>): Likewise.
+
 2012-07-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR middle-end/53959
index a1c5b7912821cbd3fa8a9ac778c1b8bd460ce0d2..49a56863617a6bfe6c5a9096d5140a4feb37bf8e 100644 (file)
 (define_expand "stack_protect_set"
   [(match_operand 0 "memory_operand")
    (match_operand 1 "memory_operand")]
-  "!OPTION_BIONIC"
+  ""
 {
   rtx (*insn)(rtx, rtx);
 
                    UNSPEC_SP_SET))
    (set (match_scratch:PTR 2 "=&r") (const_int 0))
    (clobber (reg:CC FLAGS_REG))]
-  "!OPTION_BIONIC"
+  ""
   "mov{<imodesuffix>}\t{%1, %2|%2, %1}\;mov{<imodesuffix>}\t{%2, %0|%0, %2}\;xor{l}\t%k2, %k2"
   [(set_attr "type" "multi")])
 
   [(match_operand 0 "memory_operand")
    (match_operand 1 "memory_operand")
    (match_operand 2)]
-  "!OPTION_BIONIC"
+  ""
 {
   rtx flags = gen_rtx_REG (CCZmode, FLAGS_REG);
 
                     (match_operand:PTR 2 "memory_operand" "m")]
                    UNSPEC_SP_TEST))
    (clobber (match_scratch:PTR 3 "=&r"))]
-  "!OPTION_BIONIC"
+  ""
   "mov{<imodesuffix>}\t{%1, %3|%3, %1}\;xor{<imodesuffix>}\t{%2, %3|%3, %2}"
   [(set_attr "type" "multi")])