Add hidden aliases for fenv.h functions.

Add hidden aliases for fegetenv, feupdateenv, and
ftestexcept. This avoids libc needing to go through
the PLT for these functions.

Signed-off-by: Carlos O'Donell <carlos@codesourcery.com>
This commit is contained in:
Carlos O'Donell 2011-10-20 14:30:56 -04:00
parent 2ab0965cb0
commit 5ce24e77ed
4 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2011-10-20 Carlos O'Donell <carlos@systemhalted.org>
* sysdeps/hppa/fpu/fegetenv.c: Add hidden alias.
* sysdeps/hppa/fpu/feupdateenv.c: Likewise.
* sysdeps/hppa/fpu/ftestexcept.c: Likewise.
2011-10-20 Carlos O'Donell <carlos@systemhalted.org> 2011-10-20 Carlos O'Donell <carlos@systemhalted.org>
* sysdeps/hppa/dl-tls.h: Update copyright year. * sysdeps/hppa/dl-tls.h: Update copyright year.

View File

@ -1,5 +1,5 @@
/* Store current floating-point environment. /* Store current floating-point environment.
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by David Huggins-Daines <dhd@debian.org>, 2000 Contributed by David Huggins-Daines <dhd@debian.org>, 2000
@ -33,3 +33,4 @@ fegetenv (fenv_t *envp)
memcpy(envp, buf, sizeof (*envp)); memcpy(envp, buf, sizeof (*envp));
return 0; return 0;
} }
libm_hidden_def (fegetenv)

View File

@ -1,5 +1,5 @@
/* Install given floating-point environment and raise exceptions. /* Install given floating-point environment and raise exceptions.
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by David Huggins-Daines <dhd@debian.org>, 2000 Contributed by David Huggins-Daines <dhd@debian.org>, 2000
@ -38,3 +38,4 @@ feupdateenv (const fenv_t *envp)
/* Success. */ /* Success. */
return 0; return 0;
} }
libm_hidden_def (feupdateenv)

View File

@ -1,5 +1,5 @@
/* Test exception in current environment. /* Test exception in current environment.
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by David Huggins-Daines <dhd@debian.org>, 2000 Contributed by David Huggins-Daines <dhd@debian.org>, 2000
@ -32,3 +32,4 @@ fetestexcept (int excepts)
return (s.sw[0] >> 27) & excepts & FE_ALL_EXCEPT; return (s.sw[0] >> 27) & excepts & FE_ALL_EXCEPT;
} }
libm_hidden_def (fetestexcept)