about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2015-12-07 23:07:17 +0100
committerAurelien Jarno <aurelien@aurel32.net>2015-12-09 19:03:46 +0100
commit578d080544d77daad68dd697e77f2dcff50c6c7b (patch)
tree9c44c2fd43f54bef3bd450f44028b5b344f98382 /ChangeLog
parent3b51c390f76744ccb76a07869c543db4f68484bd (diff)
downloadglibc-578d080544d77daad68dd697e77f2dcff50c6c7b.tar.gz
glibc-578d080544d77daad68dd697e77f2dcff50c6c7b.tar.xz
glibc-578d080544d77daad68dd697e77f2dcff50c6c7b.zip
mips: fix testsuite build for O32 FPXX ABI on pre-R2 CPU
On MIPS when the toolchain is using the O32 FPXX ABI, the testsuite
fails to build for pre-R2 CPU.

It assumes that it is possible to use the -mfp64 option to build
tst-abi-fp64amod and tst-abi-fp64mod, while this requires a CPU which
supports the mfhc1 and mthc1 instructions, ie at least a R2 CPU:

  error: '-mgp32' and '-mfp64' can only be combined if the target
  supports the mfhc1 and mthc1 instructions

The same way it assumes that it is possible to use the -modd-spreg option
to build tst-abi-fpxxomod and tst-abi-fp64mod, while this requires at
least a R1 CPU:

  warning: the 'mips2' architecture does not support odd
  single-precision registers

This patches changes that by checking the usability of -mfp64 and
-modd-spreg options in configure, and disable those tests when they can
not be used.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 490cfc7734..3ead583031 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
 
+	* sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
+	record the current if the current ABI and CPU support the FP64
+	extension.
+	(has-modd-spreg): Define to record the current if the current ABI and
+	CPU support 32-bit floating point values in odd FPU registers.
+	* sysdeps/unix/sysv/linux/mips/configure: Regenerate.
+	* sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
+	$(has-modd-spreg) equals yes.
+	(tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
+	(tst-abi-fp64mod): Only build when both $(has-mpf64) and
+	$(has-modd-spreg) equal yes.
+
+2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
+
 	* sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
 	basename.