mirror of git://sourceware.org/git/glibc.git
2015-08-24 Wilco Dijkstra <wdijkstr@arm.com>
* sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx): Unconditionally set __fpcr to avoid uninialized warning. (libc_feholdsetround_noex_aarch64_ctx): Likewise.
This commit is contained in:
parent
c3b9ef8dfc
commit
f008c71455
|
@ -1,3 +1,9 @@
|
||||||
|
2015-08-24 Wilco Dijkstra <wdijkstr@arm.com>
|
||||||
|
|
||||||
|
* sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
|
||||||
|
Unconditionally set __fpcr to avoid uninialized warning.
|
||||||
|
(libc_feholdsetround_noex_aarch64_ctx): Likewise.
|
||||||
|
|
||||||
2015-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
|
2015-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||||
|
|
||||||
* malloc/arena.c (arena_get_retry): Don't use main_arena if it
|
* malloc/arena.c (arena_get_retry): Don't use main_arena if it
|
||||||
|
|
|
@ -252,6 +252,7 @@ libc_feholdsetround_aarch64_ctx (struct rm_ctx *ctx, int r)
|
||||||
int round;
|
int round;
|
||||||
|
|
||||||
_FPU_GETCW (fpcr);
|
_FPU_GETCW (fpcr);
|
||||||
|
ctx->env.__fpcr = fpcr;
|
||||||
|
|
||||||
/* Check whether rounding modes are different. */
|
/* Check whether rounding modes are different. */
|
||||||
round = (fpcr ^ r) & _FPU_FPCR_RM_MASK;
|
round = (fpcr ^ r) & _FPU_FPCR_RM_MASK;
|
||||||
|
@ -259,10 +260,7 @@ libc_feholdsetround_aarch64_ctx (struct rm_ctx *ctx, int r)
|
||||||
|
|
||||||
/* Set the rounding mode if changed. */
|
/* Set the rounding mode if changed. */
|
||||||
if (__glibc_unlikely (round != 0))
|
if (__glibc_unlikely (round != 0))
|
||||||
{
|
_FPU_SETCW (fpcr ^ round);
|
||||||
ctx->env.__fpcr = fpcr;
|
|
||||||
_FPU_SETCW (fpcr ^ round);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define libc_feholdsetround_ctx libc_feholdsetround_aarch64_ctx
|
#define libc_feholdsetround_ctx libc_feholdsetround_aarch64_ctx
|
||||||
|
@ -290,6 +288,7 @@ libc_feholdsetround_noex_aarch64_ctx (struct rm_ctx *ctx, int r)
|
||||||
|
|
||||||
_FPU_GETCW (fpcr);
|
_FPU_GETCW (fpcr);
|
||||||
_FPU_GETFPSR (fpsr);
|
_FPU_GETFPSR (fpsr);
|
||||||
|
ctx->env.__fpcr = fpcr;
|
||||||
ctx->env.__fpsr = fpsr;
|
ctx->env.__fpsr = fpsr;
|
||||||
|
|
||||||
/* Check whether rounding modes are different. */
|
/* Check whether rounding modes are different. */
|
||||||
|
@ -298,10 +297,7 @@ libc_feholdsetround_noex_aarch64_ctx (struct rm_ctx *ctx, int r)
|
||||||
|
|
||||||
/* Set the rounding mode if changed. */
|
/* Set the rounding mode if changed. */
|
||||||
if (__glibc_unlikely (round != 0))
|
if (__glibc_unlikely (round != 0))
|
||||||
{
|
_FPU_SETCW (fpcr ^ round);
|
||||||
ctx->env.__fpcr = fpcr;
|
|
||||||
_FPU_SETCW (fpcr ^ round);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define libc_feholdsetround_noex_ctx libc_feholdsetround_noex_aarch64_ctx
|
#define libc_feholdsetround_noex_ctx libc_feholdsetround_noex_aarch64_ctx
|
||||||
|
|
Loading…
Reference in New Issue