diff options
author | Pavel Chupin <pavel.v.chupin@intel.com> | 2012-10-29 13:23:02 +0400 |
---|---|---|
committer | Pavel Chupin <pavel.v.chupin@intel.com> | 2012-10-30 16:30:29 +0400 |
commit | e804643b6dfcfb5842dea4b714601c6dd89f4944 (patch) | |
tree | 26d49ccf61f17c433cb0afe2596307df28367c0f /gcc-4.6 | |
parent | 8be8667d162a7bd04972e12f75bb71a8632391b9 (diff) | |
download | toolchain_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.6')
-rw-r--r-- | gcc-4.6/gcc/config/i386/i386.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc-4.6/gcc/config/i386/i386.md b/gcc-4.6/gcc/config/i386/i386.md index cc5b76aea..b1d7e5eba 100644 --- a/gcc-4.6/gcc/config/i386/i386.md +++ b/gcc-4.6/gcc/config/i386/i386.md @@ -17955,7 +17955,7 @@ (define_expand "stack_protect_set" [(match_operand 0 "memory_operand" "") (match_operand 1 "memory_operand" "")] - "!TARGET_HAS_BIONIC" + "" { rtx (*insn)(rtx, rtx); @@ -17979,7 +17979,7 @@ (unspec:P [(match_operand:P 1 "memory_operand" "m")] UNSPEC_SP_SET)) (set (match_scratch:P 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")]) @@ -17997,7 +17997,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); @@ -18027,7 +18027,7 @@ (match_operand:P 2 "memory_operand" "m")] UNSPEC_SP_TEST)) (clobber (match_scratch:P 3 "=&r"))] - "!TARGET_HAS_BIONIC" + "" "mov{<imodesuffix>}\t{%1, %3|%3, %1}\;xor{<imodesuffix>}\t{%2, %3|%3, %2}" [(set_attr "type" "multi")]) |