summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/args/arg_test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/args/arg_test.c b/test/args/arg_test.c
index 09a0fdb66..830bb047c 100644
--- a/test/args/arg_test.c
+++ b/test/args/arg_test.c
@@ -29,6 +29,16 @@ int main( int argc, char **argv)
{
int i=0;
char** index=__environ;
+
+#ifdef __powerpc__
+ {
+ unsigned long sp;
+ sp = (unsigned long) __builtin_frame_address(0);
+ if(sp&0xf){
+ fprintf(stderr, "stack pointer is unaligned! (%08lx)\n", sp);
+ }
+ }
+#endif
fprintf(stderr, "argc=%d\n", argc);