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: Obsolete matherr, _LIB_VERSION, libieee.a


On 08/24/2017 07:20 PM, Steve Ellcey wrote:
> -#undef _LIB_VERSION
> +
> +#if TEST_COMPAT (libm, GLIBC_2_0, GLIBC_2_27)
> +
> +# undef matherr
> +# undef _LIB_VERSION
>  compat_symbol_reference (libm, matherr, matherr, GLIBC_2_0);
>  compat_symbol_reference (libm, _LIB_VERSION, _LIB_VERSION, GLIBC_2_0);
>  
> @@ -45,5 +48,12 @@ do_test (void)
>    acos (2.0);
>    return fail;
>  }
> +#else
> +static int
> +do_test (void)
> +{
> +  return 0;
> +}
> +#endif

Does the fail to compile, or does it fail to link?

Maybe it is possible to make this slightly more regular.  Although the
expansion of compat_symbol_reference is difficult to remove because GCC
does not see it, so it is not optimized away.

Thanks,
Florian


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