summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/stackchk/check.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-28 18:26:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-28 18:26:05 +0000
commitb99a35a8fcfb19f56e3ec06a4f6783edc3dc4d35 (patch)
tree08173e4c34e81f6fe622a24a6b153839b810930b /cpukit/libmisc/stackchk/check.c
parent2009-08-28 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-b99a35a8fcfb19f56e3ec06a4f6783edc3dc4d35.tar.bz2
2009-08-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* libcsupport/src/malloc_initialize.c, sapi/src/exinit.c, score/src/threadstartmultitasking.c: Fix spacing. * libmisc/stackchk/check.c: Move variable into compiler specific conditional.
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;
}