This is the mail archive of the libc-hacker@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Extern inline in <gmp.h>


>>>>> Andreas Schwab writes:

AS> Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:
AS> |> We define in stdlib/gmp.h the functions (note that there's a define
AS> |> adding the leading underscores) __mpn_add_1, __mpn_add, __mpn_sub_1,
AS> |> __mpn_sub as extern inline and define these functions in
AS> |> sysdeps/generic/inlines.c if inlining fails but don't export these
AS> |> functions.  You'll notice this problem e.g. when compiling glibc
AS> |> without inlining functions during make check:

AS> Which test is affected?  Since <gmp.h> is an internal header those
AS> functions are strictly internal, and thus should not be exported.  Instead
AS> the test program should be linked explicitly against inlines.o.

You're right, my <gmp.h> header comes from the gmp package and not
from glibc.

The affected tests are math/atest-exp math/atest-sincos and
math/atest-exp2.  Andreas, can you tweak the makefiles?

Thanks,
Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]