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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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