This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
static inline functions in fp-bit
- From: Dan Towner <dant at picochip dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 07 Jun 2002 14:16:39 +0100
- Subject: static inline functions in fp-bit
- Organization: picoChip Designs Ltd.
Hi all,
I am using the fp-bit library to emulate floating point in my gcc port
to a 16-bit DSP. I am having problems with some of the functions. For
example, the multiply function uses a helper function called
fpmul_parts, which is a static inline function. The function is too big
to inline, so a function call is inserted instead. However, the function
body for fpmul_parts is never generated, so I get link failures. If I
remove the static keyword, everything works properly. Any ideas how I
can get around the problem, other than by going through the fp-bit.c
file and removing all the static keywords?
Thanks,
Dan.
=============================================================================
Daniel Towner
picoChip Designs Ltd., Riverside Buildings, 108, Walcot Street, BATH,
BA1 5BG
dant@picochip.com
07786 702589