From: Kaz Kojima Date: Tue, 7 Jul 2015 12:29:16 +0000 (+0000) Subject: re PR target/66780 (Compiling with -fstack-protector-strong causes binary to segfault) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=186eb4cb4333f6ad6152905b7a4a7940cc867eb9;p=gcc.git re PR target/66780 (Compiling with -fstack-protector-strong causes binary to segfault) PR target/66780 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03 change for target/65249. From-SVN: r225512 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6dab8a1907e..988fce30781 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-07-07 Kaz Kojima + + PR target/66780 + * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03 + change for target/65249. + 2015-07-07 Paulo Matos * symtab.c (address_matters_1): Fix typo in comment above. diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 5c8d3068255..f0cb3cfe8c4 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -10751,12 +10751,6 @@ label: "__stack_chk_guard") == 0) stack_chk_guard_p = true; - /* Use R0 to avoid long R0 liveness which stack-protector tends to - produce. */ - if (! sh_lra_flag - && stack_chk_guard_p && ! reload_in_progress && ! reload_completed) - operands[2] = gen_rtx_REG (Pmode, R0_REG); - if (TARGET_SHMEDIA) { rtx reg = operands[2];