[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] avr-gcc: -O3 and __attribute__((naked)) doesn't workt
From: |
Weddington, Eric |
Subject: |
RE: [avr-gcc-list] avr-gcc: -O3 and __attribute__((naked)) doesn't worktogether |
Date: |
Sun, 23 Nov 2008 06:49:10 -0700 |
Do you have a small test case that shows the problem? That would be very
helpful.
Thanks,
Eric
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Lin Nan
> Sent: Saturday, November 22, 2008 6:06 AM
> To: address@hidden
> Subject: [avr-gcc-list] avr-gcc: -O3 and
> __attribute__((naked)) doesn't worktogether
>
> I wonder if it is a bug.
>
> Naked functions are return with asm volatile("ret"). But when
> compiled with -O3 (which turns on -finline-function), and the
> naked function is inlined, the 'ret' opcode is copied from
> the naked function to the calling function which returns the
> calling function.
>
> I wonder what is the proper way to solve this problem, or I
> just use -fno-inline-functions to disable this feature.
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: [avr-gcc-list] avr-gcc: -O3 and __attribute__((naked)) doesn't worktogether,
Weddington, Eric <=