2015-11-13 Rich Felker <dalias@libc.org>
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Nov 2015 00:08:41 +0000 (00:08 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Nov 2015 00:08:41 +0000 (00:08 +0000)
* config/sh/sh.md (symGOT_load): Don't set stack_chk_guard_p for TARGET_FDPIC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230366 138bc75d-0d04-0410-961f-82ee72b054a4

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

index a7abe37..29bf8eb 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 557a0f0..5c748ce 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