OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [cold-lc.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -mlong-calls" } */
3
/* { dg-final { scan-assembler-not "bl\[^\n\]*dump_stack" } } */
4
 
5
extern void dump_stack (void) __attribute__ ((__cold__)) __attribute__ ((noinline));
6
struct thread_info {
7
    struct task_struct *task;
8
};
9
extern struct thread_info *current_thread_info (void);
10
 
11
void dump_stack (void)
12
{
13
    unsigned long stack;
14
    show_stack ((current_thread_info ()->task), &stack);
15
}
16
 
17
void die (char *str, void *fp, int nr)
18
{
19
    dump_stack ();
20
    while (1);
21
}
22
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.