aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/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.4.3/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.4.3/gcc')
-rw-r--r--gcc-4.4.3/gcc/config/i386/i386.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc-4.4.3/gcc/config/i386/i386.md b/gcc-4.4.3/gcc/config/i386/i386.md
index 712df1071..7989c31db 100644
--- a/gcc-4.4.3/gcc/config/i386/i386.md
+++ b/gcc-4.4.3/gcc/config/i386/i386.md
@@ -21926,7 +21926,7 @@
(define_expand "stack_protect_set"
[(match_operand 0 "memory_operand" "")
(match_operand 1 "memory_operand" "")]
- "!TARGET_HAS_BIONIC"
+ ""
{
#ifdef TARGET_THREAD_SSP_OFFSET
if (TARGET_64BIT)
@@ -21949,7 +21949,7 @@
(unspec:SI [(match_operand:SI 1 "memory_operand" "m")] UNSPEC_SP_SET))
(set (match_scratch:SI 2 "=&r") (const_int 0))
(clobber (reg:CC FLAGS_REG))]
- "!TARGET_HAS_BIONIC"
+ ""
"mov{l}\t{%1, %2|%2, %1}\;mov{l}\t{%2, %0|%0, %2}\;xor{l}\t%2, %2"
[(set_attr "type" "multi")])
@@ -21992,7 +21992,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);
ix86_compare_op0 = operands[0];