summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/stackchk/check.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libmisc/stackchk/check.c')
-rw-r--r--cpukit/libmisc/stackchk/check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index 316824516d..4cc1320610 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -60,9 +60,9 @@ static inline bool Stack_check_Frame_pointer_in_range(
Stack_Control *the_stack
)
{
- void *sp = __builtin_frame_address(0);
-
#if defined(__GNUC__)
+ void *sp = __builtin_frame_address(0);
+
if ( sp < the_stack->area ) {
return false;
}