re PR target/66780 (Compiling with -fstack-protector-strong causes binary to segfault)
authorKaz Kojima <kkojima@gcc.gnu.org>
Tue, 7 Jul 2015 12:29:16 +0000 (12:29 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Tue, 7 Jul 2015 12:29:16 +0000 (12:29 +0000)
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
gcc/config/sh/sh.md

index 6dab8a1907e1e6af3b184c7eee3c89224941230a..988fce307812a20fb2b23a64380e892d90db008b 100644 (file)
@@ -1,3 +1,9 @@
+2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       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  <pmatos@broadcom.com>
 
        * symtab.c (address_matters_1): Fix typo in comment above.
index 5c8d3068255af1b43287cf97b9816e807b929821..f0cb3cfe8c4e227532c00035db78b80deb6c44d2 100644 (file)
@@ -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];