From 186eb4cb4333f6ad6152905b7a4a7940cc867eb9 Mon Sep 17 00:00:00 2001 From: Kaz Kojima Date: Tue, 7 Jul 2015 12:29:16 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/sh/sh.md | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) 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];