glibc/sysdeps/mips/mips32
Joseph Myers 34cb304e5a Fix mips16 __fpu_control static linking (bug 18397).
Programs are supposed to be able to define the __fpu_control variable,
overriding the library's version to cause the floating-point control
word to be set to the chosen value at startup.

This is broken for mips16 for static linking because the library's
__fpu_control variable is in the same object file as the helper
functions used by fpu_control.h for mips16, so test-fpucw-ieee-static
fails to link with multiple definitions of __fpu_control.

This patch fixes this by putting the helpers in a separate file rather
than overriding fpu_control.c.  Tested for mips16 that this fixes the
link failure and the ABI tests still pass.

	[BZ #18397]
	* sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
	* sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
	<fpu_control.h> instead of <math/fpu_control.c>.
	* sysdeps/mips/mips32/fpu/Makefile: New file.
2015-05-11 22:58:10 +00:00
..
fpu Fix mips16 __fpu_control static linking (bug 18397). 2015-05-11 22:58:10 +00:00
mips16 Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
crti.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
crtn.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Implies Remove sysdeps/mips soft-fp subdirectories. 2015-02-10 22:01:39 +00:00
libm-test-ulps Regenerate MIPS libm-test-ulps. 2014-06-30 21:34:20 +00:00
Makefile Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
sfp-machine.h Remove sysdeps/mips soft-fp subdirectories. 2015-02-10 22:01:39 +00:00