]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix math/test-fpucw-*.c for sysdeps test-fpucw.c overrides.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 16 Jan 2014 05:30:52 +0000 (05:30 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 16 Jan 2014 05:30:52 +0000 (05:30 +0000)
ARM has an override of the test math/test-fpucw.c, to disable (for
soft-float testing) definitions of hard-float macros in fpu_control.h
that the header normally defines not only when building for
hard-float, but also when building for soft-float with _LIBC defined
so that libc code can dynamically test whether VFP hardware is
present.  (_LIBC is defined when building tests, although ideally it
wouldn't be.)

The override doesn't work for the derived tests test-fpucw-*.c because
they use #include "" instead of <> to include test-fpucw.c, so always
get the math/ version instead of the ARM sysdeps override.  This patch
changes them to use <> so the sysdeps override is effective.
(test-fpucw-ieee-static.c doesn't need a change because it includes
test-fpucw-ieee.c, which isn't itself being overridden, which in turn
includes test-fpucw.c with a #include changed by this patch.)

Tested for ARM (big-endian soft-float, non-VFP hardware).

* math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
* math/test-fpucw-static.c: Likewise.

ChangeLog
math/test-fpucw-ieee.c
math/test-fpucw-static.c

index a61bfde9185f080e9cf7511325b4587326830975..69d89744eebedcede526504f31c6510939c43b83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-16 Joseph Myers  <joseph@codesourcery.com>
+
+       * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
+       * math/test-fpucw-static.c: Likewise.
+
 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        [BZ #16453]
index b0035263ff85e6a5ee5e423042cc52484f0a875e..b01d1c5d69232bd2f3057b4652e1f7d573b6a620 100644 (file)
@@ -21,7 +21,7 @@
 # define FPU_CONTROL _FPU_IEEE
 #endif
 
-#include "test-fpucw.c"
+#include <test-fpucw.c>
 
 /* Preempt the library's definition of `__fpu_control'.  */
 fpu_control_t __fpu_control = FPU_CONTROL;
index bc1cfa8ce594fdafd026756754b1045512dcde81..74ec0cf29b053a14640f28dec92915d6d99e190c 100644 (file)
@@ -1 +1 @@
-#include "test-fpucw.c"
+#include <test-fpucw.c>