This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Create and use first-versions.h with macros for function symbol versions
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Fri, 21 Apr 2017 14:45:13 +0200
- Subject: Re: Create and use first-versions.h with macros for function symbol versions
- Authentication-results: sourceware.org; auth=none
- References: <alpine.DEB.2.20.1704210912040.7114@digraph.polyomino.org.uk>
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."