sh.md (symGOT_load): Don't set stack_chk_guard_p for TARGET_FDPIC.
authorRich Felker <dalias@libc.org>
Sat, 14 Nov 2015 00:08:41 +0000 (00:08 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Sat, 14 Nov 2015 00:08:41 +0000 (00:08 +0000)
2015-11-13  Rich Felker <dalias@libc.org>
* config/sh/sh.md (symGOT_load): Don't set stack_chk_guard_p for TARGET_FDPIC.

From-SVN: r230366

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

index a7abe379db80a54a37cc22b3ab4f09fb9e69bc26..29bf8eb1ce15d626ba8d96fbbba3c61a9021cf57 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-13  Rich Felker <dalias@libc.org>
+
+       * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
+       address loading hack for FDPIC targets.
+
 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
            Jeff Law  <law@redhat.com>
 
index 557a0f0ff5f6ef9cc1ede0ef0e8833d244dcc884..5c748cee7304e264e55b3e79f5b32c4dfb3c4850 100644 (file)
@@ -11078,7 +11078,7 @@ label:
   operands[2] = !can_create_pseudo_p () ? operands[0] : gen_reg_rtx (Pmode);
   operands[3] = !can_create_pseudo_p () ? operands[0] : gen_reg_rtx (Pmode);
 
-  if (!TARGET_SHMEDIA
+  if (!TARGET_SHMEDIA && !TARGET_FDPIC
       && flag_stack_protect
       && GET_CODE (operands[1]) == CONST
       && GET_CODE (XEXP (operands[1], 0)) == UNSPEC