Lionel Ulmer wrote:
> So is this a bug in gcc because it inlines a function that is called
> in an 'asm' section or a 'feature' that we could fix by adding an
> attribute / #pragma on this function that prevents gcc to inline it ?
Well, I had hoped the __attribute__(__unused__) that I attached to
the declaration would suffice ... I'm not aware of any other pragma
or attribute that could be used.
The proper solution for gcc would IMO be to replace the ASM_GLOBAL_FUNC
hack by proper GNU inline assembly, specifying the procedure address
as input argument. This way, gcc would be aware that it is used.
Unfortunately, Patrik won't like this as it breaks non-gcc compilation :-/
The quick fix would probably be to remove the 'static'.
Bye,
Ulrich
--
Dr. Ulrich Weigand
[EMAIL PROTECTED]