[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Why EthNut2.4.2 should use -Os instead of -O3?
From: |
Harald Kipp |
Subject: |
Re: [avr-gcc-list] Why EthNut2.4.2 should use -Os instead of -O3? |
Date: |
Fri, 30 Aug 2002 10:31:18 +0200 |
The Ethernut RTOS inherits an adventurous
construction from the original Liquorice
source code:
static thread_switch()
{
...
asm("label:"); /* initial thread entry */
...
}
create_thread()
{
...
asm("jmp label");
...
}
When using -o3 with AVRGCC 3.2, the compiler
makes thread_switch() inline. This makes 'label'
ambiguous.
Harald
avr-gcc-list at http://avr1.org