]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/66780 (Compiling with -fstack-protector-strong causes binary to segfault)
authorKaz Kojima <kkojima@gcc.gnu.org>
Tue, 7 Jul 2015 20:39:28 +0000 (20:39 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Tue, 7 Jul 2015 20:39:28 +0000 (20:39 +0000)
PR target/66780
* config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03 change for target/65249.

From-SVN: r225526

gcc/ChangeLog
gcc/config/sh/sh.md

index 342ec1cf8d60dd768a9b615dd41f623090ca4da9..ba4137d36dab795867a3f2507cbea05b4a507ce7 100644 (file)
@@ -1,3 +1,12 @@
+2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       Backport form mainline
+       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-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
 
        Backport from mainline r224725
index 382540156d750903d8cc4720b79c433ed71e070f..488b6651e25ddec696b83c067c89d723ed057743 100644 (file)
@@ -10158,11 +10158,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 (stack_chk_guard_p && ! reload_in_progress && ! reload_completed)
-    operands[2] = gen_rtx_REG (Pmode, R0_REG);
-
   if (TARGET_SHMEDIA)
     {
       rtx reg = operands[2];