avr-gcc-list
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]