Skip to content

Commit

Permalink
Specify powerpc-nofpu fegetexceptflag return type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Myers committed Dec 5, 2012
1 parent 8d65d9d commit ea2c587
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ports/ChangeLog.powerpc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2012-12-05 Joseph Myers <joseph@codesourcery.com>

* sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
Specify return type as int.

2012-11-30 Joseph Myers <joseph@codesourcery.com>

* sysdeps/powerpc/nofpu/libm-test-ulps: Remove fma ulps.
Expand Down
3 changes: 2 additions & 1 deletion ports/sysdeps/powerpc/nofpu/fgetexcptflg.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Store current representation for exceptions (soft-float edition).
Copyright (C) 2002 Free Software Foundation, Inc.
Copyright (C) 2002-2012 Free Software Foundation, Inc.
Contributed by Aldy Hernandez <aldyh@redhat.com>, 2002.
This file is part of the GNU C Library.
Expand All @@ -21,6 +21,7 @@
#include "soft-supp.h"
#include <bp-sym.h>

int
__fegetexceptflag (fexcept_t *flagp, int excepts)
{
*flagp = (fexcept_t) __sim_exceptions & excepts & FE_ALL_EXCEPT;
Expand Down

0 comments on commit ea2c587

Please sign in to comment.