diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-10-13 10:29:03 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-13 10:29:03 +0200 |
commit | 1202f33e5e1e4236fec7a3c1d14c16b5f13c2aaa (patch) | |
tree | 685fcc683b155fa909df23b9901c4825e6a36a60 /gcc/hooks.c | |
parent | 90bca4ed80de6437b4101a65eb29fb034b793981 (diff) |
re PR target/77957 (Undefined .LCTOC0 with -fstack-protector-strong -mminimal-toc -O0 on ppc64)
PR target/77957
* hooks.h (hook_tree_void_null): Declare.
* hooks.c (hook_tree_void_null): New function.
* langhooks.c (lhd_return_null_tree_v): Remove.
* langhooks-def.h (lhd_return_null_tree_v): Remove.
* cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
set y to const0_rtx.
* function.c (stack_protect_epilogue): Likewise.
* config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
if TARGET_THREAD_SSP_OFFSET is defined.
* config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
* config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
* config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
* config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
* config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
(ix86_stack_protect_guard): New function.
c/
* c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
instead of lhd_return_null_tree_v.
ada/
* gcc-interface/misc.c (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
instead of lhd_return_null_tree_v.
From-SVN: r241087
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r-- | gcc/hooks.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c index 917bb6eda6b..3995786d7c2 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -429,6 +429,13 @@ hook_tree_const_tree_null (const_tree) return NULL; } +/* Generic hook that takes no arguments and returns a NULL_TREE. */ +tree +hook_tree_void_null (void) +{ + return NULL; +} + /* Generic hook that takes a rtx_insn * and an int and returns a bool. */ bool |