This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7183 - ARM-GCC 4.11 compiler error in thread.c
Attached to Project:
Rockbox
Opened by Alex Gerchanovsky (shoora) - Thursday, 17 May 2007, 22:30 GMT+2
Last edited by Magnus Holmgren (learman) - Tuesday, 05 June 2007, 21:28 GMT+2
Opened by Alex Gerchanovsky (shoora) - Thursday, 17 May 2007, 22:30 GMT+2
Last edited by Magnus Holmgren (learman) - Tuesday, 05 June 2007, 21:28 GMT+2
|
DetailsI use ARM-GCC 4.1.1 from http://www.gnuarm.org/.
By the way, it generates slightly smaller code. It only have problem with start_thread declaration. To fix this error we have to remove static declaration of this function. |
This task depends upon
/cygdrive/c/rockbox/build-device/librockbox.a(thread.o): In function `create_thread':
thread.c:(.text+0x95c): undefined reference to `start_thread'
I guess this may be caused by call from inline assembler in function 'load_context'?
static inline void load_context(const void* addr)
{
asm volatile(
"ldmia %0, { r4-r11, sp, lr } \\n" /* load regs r4 to r14 from context */
"ldr r0, [%0, #40] \\n" /* load start pointer */
"cmp r0, #0 \\n" /* check for NULL */
"movne r1, %0 \\n" /* if not already running, jump to start */
"ldrne pc, =start_thread \\n"
: : "r" (addr) : "r0", "r1"
);
}