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: [PATCH] PowerPC: Set/restore rounding mode only when needed


On 25-11-2013 16:52, Joseph S. Myers wrote:
> This breaks the build for powerpc-nofpu by introducing __fegetround
> calls into ldbl-128ibm code when nothing defines __fegetround for
> powerpc-nofpu.  This patch updates the nofpu fenv_libc.h headers to
> fix this (restoring the status quo of calls to fegetround rather than
> introducing any sort of optimized version in the header).
>
> 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
>
> 	* sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
> 	* sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
> 	Likewise.
>
> diff --git a/sysdeps/powerpc/nofpu/fenv_libc.h b/sysdeps/powerpc/nofpu/fenv_libc.h
> index 14a2d04..a0b6b91 100644
> --- a/sysdeps/powerpc/nofpu/fenv_libc.h
> +++ b/sysdeps/powerpc/nofpu/fenv_libc.h
> @@ -25,4 +25,7 @@
>
>  #include <fenv.h>
>
> +/* ldbl-128ibm code uses __fegetround.  */
> +#define __fegetround()	fegetround ()
> +
>  #endif /* fenv_libc.h */
> diff --git a/sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h b/sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
> index 9637580..e905eda 100644
> --- a/sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
> +++ b/sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
> @@ -21,6 +21,9 @@
>
>  #include <fenv.h>
>
> +/* ldbl-128ibm code uses __fegetround.  */
> +#define __fegetround()	fegetround ()
> +
>  int __feraiseexcept_spe (int);
>  libm_hidden_proto (__feraiseexcept_spe)
>
>
This is ok, thansk for spot this!


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