aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/gcc
diff options
context:
space:
mode:
authorPavel Chupin <pavel.v.chupin@intel.com>2012-10-29 13:23:02 +0400
committerPavel Chupin <pavel.v.chupin@intel.com>2012-10-30 16:30:29 +0400
commite804643b6dfcfb5842dea4b714601c6dd89f4944 (patch)
tree26d49ccf61f17c433cb0afe2596307df28367c0f /gcc-4.7/gcc
parent8be8667d162a7bd04972e12f75bb71a8632391b9 (diff)
downloadtoolchain_gcc-e804643b6dfcfb5842dea4b714601c6dd89f4944.tar.gz
toolchain_gcc-e804643b6dfcfb5842dea4b714601c6dd89f4944.tar.bz2
toolchain_gcc-e804643b6dfcfb5842dea4b714601c6dd89f4944.zip
Return to %gs:20 code generation for -fstack-protector on x86
After https://android-review.googlesource.com/#/c/45416 bionic provides stack-protector random value per each thread at %gs:20. Therefore return compiler back to %gs:20 code gen, same as for glibc. Change-Id: I76c68f0c99846d247f34e0ea781a7f1c305659b9 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
Diffstat (limited to 'gcc-4.7/gcc')
-rw-r--r--gcc-4.7/gcc/config/i386/i386.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc-4.7/gcc/config/i386/i386.md b/gcc-4.7/gcc/config/i386/i386.md
index eace56d9f..d8deee8da 100644
--- a/gcc-4.7/gcc/config/i386/i386.md
+++ b/gcc-4.7/gcc/config/i386/i386.md
@@ -17722,7 +17722,7 @@
(define_expand "stack_protect_set"
[(match_operand 0 "memory_operand" "")
(match_operand 1 "memory_operand" "")]
- "!TARGET_HAS_BIONIC"
+ ""
{
rtx (*insn)(rtx, rtx);
@@ -17747,7 +17747,7 @@
UNSPEC_SP_SET))
(set (match_scratch:PTR 2 "=&r") (const_int 0))
(clobber (reg:CC FLAGS_REG))]
- "!TARGET_HAS_BIONIC"
+ ""
"mov{<imodesuffix>}\t{%1, %2|%2, %1}\;mov{<imodesuffix>}\t{%2, %0|%0, %2}\;xor{l}\t%k2, %k2"
[(set_attr "type" "multi")])
@@ -17765,7 +17765,7 @@
[(match_operand 0 "memory_operand" "")
(match_operand 1 "memory_operand" "")
(match_operand 2 "" "")]
- "!TARGET_HAS_BIONIC"
+ ""
{
rtx flags = gen_rtx_REG (CCZmode, FLAGS_REG);
@@ -17795,7 +17795,7 @@
(match_operand:PTR 2 "memory_operand" "m")]
UNSPEC_SP_TEST))
(clobber (match_scratch:PTR 3 "=&r"))]
- "!TARGET_HAS_BIONIC"
+ ""
"mov{<imodesuffix>}\t{%1, %3|%3, %1}\;xor{<imodesuffix>}\t{%2, %3|%3, %2}"
[(set_attr "type" "multi")])