This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: Extern inline in <gmp.h>
- To: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Subject: Re: Extern inline in <gmp.h>
- From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
- Date: 24 Mar 1999 11:38:05 +0100
- Cc: libc-hacker@cygnus.com
- References: <u8g16wvydz.fsf@arthur.rhein-neckar.de>
Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:
|> We define in stdlib/gmp.h the functions (note that there's a define
|> adding the leading underscores) __mpn_add_1, __mpn_add, __mpn_sub_1,
|> __mpn_sub as extern inline and define these functions in
|> sysdeps/generic/inlines.c if inlining fails but don't export these
|> functions. You'll notice this problem e.g. when compiling glibc
|> without inlining functions during make check:
Which test is affected? Since <gmp.h> is an internal header those
functions are strictly internal, and thus should not be exported. Instead
the test program should be linked explicitly against inlines.o.
Andreas.
--
Andreas Schwab "And now for something
schwab@issan.cs.uni-dortmund.de completely different"
schwab@gnu.org