summaryrefslogtreecommitdiff
path: root/gcc/targhooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r--gcc/targhooks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c
index f6289c8977e..45942a27a22 100644
--- a/gcc/targhooks.c
+++ b/gcc/targhooks.c
@@ -398,6 +398,8 @@ default_external_stack_protect_fail (void)
TREE_NOTHROW (t) = 1;
DECL_ARTIFICIAL (t) = 1;
DECL_IGNORED_P (t) = 1;
+ DECL_VISIBILITY (t) = VISIBILITY_DEFAULT;
+ DECL_VISIBILITY_SPECIFIED (t) = 1;
stack_chk_fail_decl = t;
}