forked from len0rd/rockbox
build: Various LTO fixes
* Give arm panicf_f() USED_ATTR * Ensure start_thread() has USED_ATTR Change-Id: I6a833be7fbe25410c21e0df233fcae91e451bf00
This commit is contained in:
parent
bdf1690cb2
commit
0624e265ab
4 changed files with 5 additions and 5 deletions
|
@ -47,7 +47,7 @@ static char panic_buf[128];
|
|||
#define LINECHARS (LCD_WIDTH/SYSFONT_WIDTH) - 2
|
||||
|
||||
#if defined(CPU_ARM) && defined(HAVE_RB_BACKTRACE)
|
||||
void panicf_f( const char *fmt, ...);
|
||||
void panicf_f( const char *fmt, ...) USED_ATTR;
|
||||
|
||||
/* we wrap panicf() here with naked function to catch SP value */
|
||||
void __attribute__((naked)) panicf( const char *fmt, ...)
|
||||
|
@ -60,7 +60,7 @@ void __attribute__((naked)) panicf( const char *fmt, ...)
|
|||
}
|
||||
|
||||
/*
|
||||
* "Dude. This is pretty fucked-up, right here."
|
||||
* "Dude. This is pretty fucked-up, right here."
|
||||
*/
|
||||
void panicf_f( const char *fmt, ...)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue