This is the mail archive of the libc-alpha@sourceware.org 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]
Other format: [Raw text]

Re: Create and use first-versions.h with macros for function symbol versions


On Apr 21 2017, Joseph Myers <joseph@codesourcery.com> wrote:

> This patch arranges for the glibc build to generate a header
> first-versions.h that defines macros for the earliest symbol version
> in which each public symbol (GLIBC_[0-9]* symbol version, name only
> uses C identifier characters) is available.
>
> This is used in sysdeps/ieee754/ldbl-opt/math-type-macros-double.h to
> replace the manually defined LDOUBLE_*_libm_version macros for various
> functions defined using type-generic templates, the purpose of which
> is to use in LONG_DOUBLE_COMPAT tests "was this function originally
> added before glibc supported long double != double on this platform?".

This won't always be the first version of a symbol, so the first version
can be non-fitting.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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