glibc/sysdeps/mips
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
..
bits 2015-02-18 Steve Ellcey <sellcey@imgtec.com> 2015-02-18 10:51:37 -08:00
fpu Fix libm feupdateenv namespace (bug 17748). 2015-01-07 19:01:20 +00:00
ieee754 Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
include/sys Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mips32 Fix mips16 __fpu_control static linking (bug 18397). 2015-05-11 22:58:10 +00:00
mips64 Remove sysdeps/mips soft-fp subdirectories. 2015-02-10 22:01:39 +00:00
nptl Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sys Fix MIPS __mips_isa_rev -Werror=undef build. 2015-02-16 22:12:15 +00:00
Implies Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
Makefile Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
__longjmp.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
abort-instr.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
add_n.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
addmul_1.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
backtrace.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
bsd-_setjmp.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bsd-setjmp.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
configure Require autoconf 2.69 2014-09-29 07:53:36 -07:00
configure.ac Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-dtprocnum.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
dl-machine-reject-phdr.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
dl-machine.h 2015-01-05 Steve Ellcey <sellcey@imgtec.com> 2015-01-05 09:39:33 -08:00
dl-procinfo.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
dl-procinfo.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
dl-tls.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
dl-trampoline.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fpregdef.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fpu_control.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
gccframe.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
jmpbuf-unwind.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ldsodefs.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
libc-tls.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
lshift.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
machine-gmon.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
math-tests.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
math_private.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
memcpy.S 2015-02-17 Steve Ellcey <sellcey@imgtec.com> 2015-02-17 13:38:49 -08:00
memset.S 2015-02-17 Steve Ellcey <sellcey@imgtec.com> 2015-02-17 13:38:49 -08:00
memusage.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mul_1.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
preconfigure Put mips preconfigure code inside mips* case statement. 2014-09-09 10:58:00 -07:00
regdef.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
rshift.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setjmp.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setjmp_aux.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sgidefs.h Fix MIPS _ABIO64 -Werror=undef build. 2015-02-16 22:25:02 +00:00
sotruss-lib.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
stackinfo.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
start.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
strcmp.S Fix MIPS _COMPILING_NEWLIB -Werror=undef build. 2015-02-16 22:18:53 +00:00
sub_n.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
submul_1.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tininess.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
tls-macros.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
tst-abi-fp32mod.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-abi-fp64amod.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-abi-fp64mod.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-abi-fpxxmod.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-abi-fpxxomod.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-abi-interlink.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-audit.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mode-switch-1.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mode-switch-2.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mode-switch-3.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00