Skip to content

Commit

Permalink
Fix powerpc-nofpu fesetenv namespace (bug 17748).
Browse files Browse the repository at this point in the history
When fixing namespace issues for <fenv.h> functions I missed one call
to fesetenv for powerpc-nofpu.  This patch changes this to a call to
__fesetenv.

Tested for powerpc-nofpu; it fixes the previously observed math.h
linknamespace test failures.

	[BZ #17748]
	* sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
	__fesetenv instead of fesetenv.
  • Loading branch information
Joseph Myers committed Jan 14, 2015
1 parent d639a36 commit 53fbd16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2015-01-14 Joseph Myers <joseph@codesourcery.com>

[BZ #17748]
* sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
__fesetenv instead of fesetenv.

2015-01-14 Siddhesh Poyarekar <siddhesh@redhat.com>

* sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/powerpc/nofpu/feholdexcpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ __feholdexcept (fenv_t *envp)
u.l[1] = FE_ALL_EXCEPT;

/* Put the new state in effect. */
fesetenv (&u.fenv);
__fesetenv (&u.fenv);

return 0;
}
Expand Down

0 comments on commit 53fbd16

Please sign in to comment.