From: Rich Felker Date: Sat, 14 Nov 2015 00:08:41 +0000 (+0000) Subject: sh.md (symGOT_load): Don't set stack_chk_guard_p for TARGET_FDPIC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a60e03e43ef214422bda5a9df24e38cee5d54ae;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a7abe379db8..29bf8eb1ce1 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 557a0f0ff5f..5c748cee730 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