From 6a60e03e43ef214422bda5a9df24e38cee5d54ae Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 14 Nov 2015 00:08:41 +0000 Subject: sh.md (symGOT_load): Don't set stack_chk_guard_p for TARGET_FDPIC. 2015-11-13 Rich Felker * config/sh/sh.md (symGOT_load): Don't set stack_chk_guard_p for TARGET_FDPIC. From-SVN: r230366 --- gcc/ChangeLog | 5 +++++ gcc/config/sh/sh.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a7abe37..29bf8eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-11-13 Rich Felker + + * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard + address loading hack for FDPIC targets. + 2015-11-13 Ajit Agarwal Jeff Law diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 557a0f0..5c748ce 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -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 -- cgit v1.1