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: Bernd Trog
Subject: Re: [avr-gcc-list] Re: Removal of unused functions
Date: Fri, 25 Aug 2006 08:36:02 -0700 (PDT)

On Tue, 22 Aug 2006, Joerg Wunsch wrote:

> Bernd Trog <address@hidden> wrote:
> > Use __attribute__((used)) for ISRs if you call gcc with -combine
> > -fwhole-program *.c.
>
> OK, that'll require changes in avr-libc (in the prototype for ISR()).
> Should be easy though.

Oh - the documentation for __attribute__((used)) makes no
guarantees about the symbol visibility.

We should use 'externally_visible' for ISRs:

| externally_visible:
| This attribute, attached to a global variable or function nullify effect
| of -fwhole-program command line option, so the object remain visible
| outside the current compilation unit.



It would probably better to do this in the compiler some how (if
'signal'|'innterrupt' then add 'externally_visible')?




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

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