The libffi.call/float2.c test uses fabsl which was introduced in c99 and isn't 
available on hppa*-*-hpux*.
In order to use the target selector with dg-run, I need to load 
target-supports-dg.exp in lib/libffi.exp.

Tested on hppa2.0w-hp-hpux11.11.  Okay for trunk?

Dave
--
John David Anglin       dave.ang...@bell.net


2015-03-28  John David Anglin  <dang...@gcc.gnu.org>

        PR libffi/65441
        * testsuite/lib/libffi.exp: Load target-supports-dg.exp.
        * testsuite/libffi.call/float2.c: Don't run on hppa*-*-hpux*.

Index: testsuite/lib/libffi.exp
===================================================================
--- testsuite/lib/libffi.exp    (revision 221726)
+++ testsuite/lib/libffi.exp    (working copy)
@@ -24,6 +24,7 @@
 load_lib dg.exp
 load_lib libgloss.exp
 load_gcc_lib target-supports.exp
+load_gcc_lib target-supports-dg.exp
 load_gcc_lib target-libpath.exp
 load_gcc_lib wrapper.exp
 
Index: testsuite/libffi.call/float2.c
===================================================================
--- testsuite/libffi.call/float2.c      (revision 221726)
+++ testsuite/libffi.call/float2.c      (working copy)
@@ -3,7 +3,7 @@
    Limitations:        none.
    PR:         none.
    Originator: From the original ffitest.c  */
-/* { dg-do run } */
+/* { dg-do run { target { ! hppa*-*-hpux* } } } */
 
 #include "ffitest.h"
 #include "float.h"

Reply via email to