From c2630c3abf76d29e8ec5fd2ccb32b43d1cacdf50 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 6 Dec 2003 08:11:37 +0000 Subject: Update. 2003-12-04 Steven Munroe * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Add masking of fenv. * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag): Likewise. --- sysdeps/powerpc/fpu/fgetexcptflg.c | 2 +- sysdeps/powerpc/nofpu/fgetexcptflg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/powerpc') diff --git a/sysdeps/powerpc/fpu/fgetexcptflg.c b/sysdeps/powerpc/fpu/fgetexcptflg.c index ddd71f9d93..a652eb8e50 100644 --- a/sysdeps/powerpc/fpu/fgetexcptflg.c +++ b/sysdeps/powerpc/fpu/fgetexcptflg.c @@ -29,7 +29,7 @@ __fegetexceptflag (fexcept_t *flagp, int excepts) u.fenv = fegetenv_register (); /* Return (all of) it. */ - *flagp = u.l[1]; + *flagp = u.l[1] & excepts & FE_ALL_EXCEPT; /* Success. */ return 0; diff --git a/sysdeps/powerpc/nofpu/fgetexcptflg.c b/sysdeps/powerpc/nofpu/fgetexcptflg.c index 9d4f078d23..713bd92881 100644 --- a/sysdeps/powerpc/nofpu/fgetexcptflg.c +++ b/sysdeps/powerpc/nofpu/fgetexcptflg.c @@ -24,7 +24,7 @@ __fegetexceptflag (fexcept_t *flagp, int excepts) { - *flagp = (fexcept_t) __sim_exceptions; + *flagp = (fexcept_t) __sim_exceptions & excepts & FE_ALL_EXCEPT; return 0; } -- cgit 1.4.1