[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: |
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
- [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 <=
- 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, 2006/08/28
- 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