[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Re: Removal of unused functions
From: |
Eric Weddington |
Subject: |
RE: [avr-gcc-list] Re: Removal of unused functions |
Date: |
Mon, 28 Aug 2006 11:04:16 -0600 |
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Joerg Wunsch
> Sent: Sunday, August 27, 2006 1:40 PM
> To: address@hidden
> Subject: Re: [avr-gcc-list] Re: Removal of unused functions
>
> Bernd Trog <address@hidden> wrote:
>
> > Yes, but the docs for 'used' say nothing about the visibility of
> > that used function. OTH, the docs for -fwhole-program say that
> > everything will be static (invisible, local).
>
> And that's exactly what happens. It can be easily verified by
> compiling and linking a program with both attribute settings: when
> only "used" is specified, the code will be emitted but the assembly
> code misses the .global statement, so the linker doesn't see it as a
> symbol to overload the weak interrupt vector symbol from the library.
>
> So in effect, all three attributes are needed: signal (or interrupt),
> used, and externally_visible.
Thanks for making this clear. I'll take care of it, since I started it.
Eric
- [avr-gcc-list] Re: Removal of unused functions, Björn Haase, 2006/08/19
- Re: [avr-gcc-list] Re: Removal of unused functions, Anatoly Sokolov, 2006/08/19
- Re: [avr-gcc-list] Re: Removal of unused functions, Joerg Wunsch, 2006/08/21
- Re: [avr-gcc-list] Re: Removal of unused functions, Bernd Trog, 2006/08/21
- Re: [avr-gcc-list] Re: Removal of unused functions, Joerg Wunsch, 2006/08/22
- Re: [avr-gcc-list] Re: Removal of unused functions, Bernd Trog, 2006/08/25
- RE: [avr-gcc-list] Re: Removal of unused functions, Eric Weddington, 2006/08/25
- RE: [avr-gcc-list] Re: Removal of unused functions, Bernd Trog, 2006/08/27
- Re: [avr-gcc-list] Re: Removal of unused functions, Joerg Wunsch, 2006/08/27
- RE: [avr-gcc-list] Re: Removal of unused functions,
Eric Weddington <=
- Re: [avr-gcc-list] Re: Removal of unused functions, Anatoly Sokolov, 2006/08/22
[avr-gcc-list] Re: Removal of unused functions, Johannes Bauer, 2006/08/21