1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>

	* elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
	* elf/elf.h: Add AT_FPUCW.
	* elf/Makefile (dl-routines): Add fpu_control.
	(elide-routines.os): Add fpu_control.
	(rtld-routines): Add fpu_control.
	* math/Makefile (aux): Remove fpu_control.
	* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
	(_dl_show_auxv): Likewise.
	* sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
	if different from OS default.

	* stdio-common/tstscanf.c: Add test case for (nil).
This commit is contained in:
Ulrich Drepper
1998-09-20 09:48:01 +00:00
parent c53a89d434
commit a0780919b4
8 changed files with 56 additions and 7 deletions

View File

@ -60,8 +60,10 @@ init (int argc, char **argv, char **envp)
the executable format. */
__personality (PER_LINUX);
/* Set the FPU control word to the proper default value. */
__setfpucw (__fpu_control);
/* Set the FPU control word to the proper default value if the
kernel would use a different value. */
if (__fpu_control != _FPU_DEFAULT)
__setfpucw (__fpu_control);
}
/* Save the command-line arguments. */