mirror of git://gcc.gnu.org/git/gcc.git
i386.md (stack_protect_set): Disable the pattern for Android since Android libc (bionic) does not provide...
2012-07-25 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.
* gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
not have Bionic by default
* config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
Macro OPTION_BIONIC is defined in this file and provides Bionic
accessibility status
From-SVN: r189840
This commit is contained in:
parent
3e31cf28a4
commit
4bd5abcae1
|
|
@ -1,3 +1,18 @@
|
||||||
|
2012-07-25 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.
|
||||||
|
* gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
|
||||||
|
not have Bionic by default
|
||||||
|
* config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
|
||||||
|
Macro OPTION_BIONIC is defined in this file and provides Bionic
|
||||||
|
accessibility status
|
||||||
|
|
||||||
2012-07-25 Steven Bosscher <steven@gcc.gnu.org>
|
2012-07-25 Steven Bosscher <steven@gcc.gnu.org>
|
||||||
|
|
||||||
* gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
|
* gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
|
||||||
|
|
|
||||||
|
|
@ -17677,7 +17677,7 @@
|
||||||
(define_expand "stack_protect_set"
|
(define_expand "stack_protect_set"
|
||||||
[(match_operand 0 "memory_operand")
|
[(match_operand 0 "memory_operand")
|
||||||
(match_operand 1 "memory_operand")]
|
(match_operand 1 "memory_operand")]
|
||||||
""
|
"!TARGET_HAS_BIONIC"
|
||||||
{
|
{
|
||||||
rtx (*insn)(rtx, rtx);
|
rtx (*insn)(rtx, rtx);
|
||||||
|
|
||||||
|
|
@ -17702,7 +17702,7 @@
|
||||||
UNSPEC_SP_SET))
|
UNSPEC_SP_SET))
|
||||||
(set (match_scratch:PTR 2 "=&r") (const_int 0))
|
(set (match_scratch:PTR 2 "=&r") (const_int 0))
|
||||||
(clobber (reg:CC FLAGS_REG))]
|
(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"
|
"mov{<imodesuffix>}\t{%1, %2|%2, %1}\;mov{<imodesuffix>}\t{%2, %0|%0, %2}\;xor{l}\t%k2, %k2"
|
||||||
[(set_attr "type" "multi")])
|
[(set_attr "type" "multi")])
|
||||||
|
|
||||||
|
|
@ -17720,7 +17720,7 @@
|
||||||
[(match_operand 0 "memory_operand")
|
[(match_operand 0 "memory_operand")
|
||||||
(match_operand 1 "memory_operand")
|
(match_operand 1 "memory_operand")
|
||||||
(match_operand 2)]
|
(match_operand 2)]
|
||||||
""
|
"!TARGET_HAS_BIONIC"
|
||||||
{
|
{
|
||||||
rtx flags = gen_rtx_REG (CCZmode, FLAGS_REG);
|
rtx flags = gen_rtx_REG (CCZmode, FLAGS_REG);
|
||||||
|
|
||||||
|
|
@ -17750,7 +17750,7 @@
|
||||||
(match_operand:PTR 2 "memory_operand" "m")]
|
(match_operand:PTR 2 "memory_operand" "m")]
|
||||||
UNSPEC_SP_TEST))
|
UNSPEC_SP_TEST))
|
||||||
(clobber (match_scratch:PTR 3 "=&r"))]
|
(clobber (match_scratch:PTR 3 "=&r"))]
|
||||||
""
|
"!TARGET_HAS_BIONIC"
|
||||||
"mov{<imodesuffix>}\t{%1, %3|%3, %1}\;xor{<imodesuffix>}\t{%2, %3|%3, %2}"
|
"mov{<imodesuffix>}\t{%1, %3|%3, %1}\;xor{<imodesuffix>}\t{%2, %3|%3, %2}"
|
||||||
[(set_attr "type" "multi")])
|
[(set_attr "type" "multi")])
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,3 +104,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
/* Whether we have sincos that follows the GNU extension. */
|
/* Whether we have sincos that follows the GNU extension. */
|
||||||
#undef TARGET_HAS_SINCOS
|
#undef TARGET_HAS_SINCOS
|
||||||
#define TARGET_HAS_SINCOS (OPTION_GLIBC || OPTION_BIONIC)
|
#define TARGET_HAS_SINCOS (OPTION_GLIBC || OPTION_BIONIC)
|
||||||
|
|
||||||
|
/* Whether we have Bionic libc runtime */
|
||||||
|
#undef TARGET_HAS_BIONIC
|
||||||
|
#define TARGET_HAS_BIONIC (OPTION_BIONIC)
|
||||||
|
|
|
||||||
|
|
@ -1054,6 +1054,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
#define TARGET_HAS_SINCOS 0
|
#define TARGET_HAS_SINCOS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Determin whether the target runtime library is Bionic */
|
||||||
|
#ifndef TARGET_HAS_BIONIC
|
||||||
|
#define TARGET_HAS_BIONIC 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Indicate that CLZ and CTZ are undefined at zero. */
|
/* Indicate that CLZ and CTZ are undefined at zero. */
|
||||||
#ifndef CLZ_DEFINED_VALUE_AT_ZERO
|
#ifndef CLZ_DEFINED_VALUE_AT_ZERO
|
||||||
#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
|
#define CLZ_DEFINED_VALUE_AT_ZERO(MODE, VALUE) 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue