From: jakub Date: Sat, 19 Jan 2019 17:28:29 +0000 (+0000) Subject: * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4af0d2bebe79777ad676d408aab38d81f912c3b5;p=thirdparty%2Fgcc.git * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move outside of #if CHECKING_P code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268095 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a4a8ed973c3..01d4e7e6bb02 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-01-19 Jakub Jelinek + + * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move + outside of #if CHECKING_P code. + 2019-01-19 Richard Sandiford * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood): diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index e13badaf6cf9..5df5a8b78439 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -18662,6 +18662,19 @@ aarch64_simd_clone_usable (struct cgraph_node *node) } } +/* Implement TARGET_STACK_PROTECT_GUARD. In case of a + global variable based guard use the default else + return a null tree. */ +static tree +aarch64_stack_protect_guard (void) +{ + if (aarch64_stack_protector_guard == SSP_GLOBAL) + return default_stack_protect_guard (); + + return NULL_TREE; +} + + /* Target-specific selftests. */ #if CHECKING_P @@ -18706,19 +18719,6 @@ aarch64_run_selftests (void) } // namespace selftest -/* Implement TARGET_STACK_PROTECT_GUARD. In case of a - global variable based guard use the default else - return a null tree. */ -static tree -aarch64_stack_protect_guard (void) -{ - if (aarch64_stack_protector_guard == SSP_GLOBAL) - return default_stack_protect_guard (); - - return NULL_TREE; -} - - #endif /* #if CHECKING_P */ #undef TARGET_STACK_PROTECT_GUARD