aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/cold-lc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/arm/cold-lc.c')
-rw-r--r--gcc/testsuite/gcc.target/arm/cold-lc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.target/arm/cold-lc.c b/gcc/testsuite/gcc.target/arm/cold-lc.c
index 467a696..f0cd6df 100644
--- a/gcc/testsuite/gcc.target/arm/cold-lc.c
+++ b/gcc/testsuite/gcc.target/arm/cold-lc.c
@@ -11,13 +11,14 @@ extern int show_stack (struct task_struct *, unsigned long *);
void dump_stack (void)
{
- unsigned long stack;
- show_stack ((current_thread_info ()->task), &stack);
+ unsigned long stack;
+ show_stack ((current_thread_info ()->task), &stack);
}
void die (char *str, void *fp, int nr)
{
+ if (nr)
dump_stack ();
- while (1);
+ while (1);
}