mirror of
https://github.com/partic2/libffi
synced 2026-11-10 18:17:19 +00:00
HPUX support and avr32 test fixes.
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
Index: libffi/ChangeLog.libffi
|
||||
===================================================================
|
||||
--- libffi.orig/ChangeLog.libffi
|
||||
+++ libffi/ChangeLog.libffi
|
||||
@@ -1,3 +1,10 @@
|
||||
+2009-12-26 Anthony Green <green@redhat.com>
|
||||
+
|
||||
+ * testsuite/libffi.call/huge_struct.c: Don't xfail for avr32*-*-*.
|
||||
+ * testsuite/libffi.call/cls_longdouble_va.c: Mark as xfail for
|
||||
+ avr32*-*-*.
|
||||
+ * testsuite/libffi.call/cls_double_va.c: Ditto.
|
||||
+
|
||||
2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
|
||||
|
||||
* testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
|
||||
Index: libffi/testsuite/libffi.call/cls_double_va.c
|
||||
===================================================================
|
||||
--- libffi.orig/testsuite/libffi.call/cls_double_va.c
|
||||
+++ libffi/testsuite/libffi.call/cls_double_va.c
|
||||
@@ -4,7 +4,7 @@
|
||||
PR: none.
|
||||
Originator: Blake Chaffin 6/6/2007 */
|
||||
|
||||
-/* { dg-do run { xfail strongarm*-*-* xscale*-*-* } } */
|
||||
+/* { dg-do run { xfail avr32*-*-* strongarm*-*-* xscale*-*-* } } */
|
||||
#include "ffitest.h"
|
||||
|
||||
static void
|
||||
Index: libffi/testsuite/libffi.call/cls_longdouble_va.c
|
||||
===================================================================
|
||||
--- libffi.orig/testsuite/libffi.call/cls_longdouble_va.c
|
||||
+++ libffi/testsuite/libffi.call/cls_longdouble_va.c
|
||||
@@ -4,7 +4,7 @@
|
||||
PR: none.
|
||||
Originator: Blake Chaffin 6/6/2007 */
|
||||
|
||||
-/* { dg-do run { xfail strongarm*-*-* xscale*-*-* } } */
|
||||
+/* { dg-do run { xfail avr32*-*-* strongarm*-*-* xscale*-*-* } } */
|
||||
/* { dg-output "" { xfail x86_64-*-mingw* } } */
|
||||
#include "ffitest.h"
|
||||
|
||||
Index: libffi/testsuite/libffi.call/huge_struct.c
|
||||
===================================================================
|
||||
--- libffi.orig/testsuite/libffi.call/huge_struct.c
|
||||
+++ libffi/testsuite/libffi.call/huge_struct.c
|
||||
@@ -5,10 +5,10 @@
|
||||
Originator: Blake Chaffin 6/18/2007
|
||||
*/
|
||||
|
||||
-/* { dg-excess-errors "" { target avr32-*-* x86_64-*-mingw* x86_64-*-cygwin* } } */
|
||||
+/* { dg-excess-errors "" { target x86_64-*-mingw* x86_64-*-cygwin* } } */
|
||||
/* { dg-do run { xfail strongarm*-*-* xscale*-*-* } } */
|
||||
/* { dg-options -mlong-double-128 { target powerpc64*-*-* } } */
|
||||
-/* { dg-output "" { xfail avr32-*-* x86_64-*-mingw* x86_64-*-cygwin* } } */
|
||||
+/* { dg-output "" { xfail x86_64-*-mingw* x86_64-*-cygwin* } } */
|
||||
|
||||
#include "ffitest.h"
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
Index: libffi/ChangeLog.libffi
|
||||
===================================================================
|
||||
--- libffi.orig/ChangeLog.libffi
|
||||
+++ libffi/ChangeLog.libffi
|
||||
@@ -1,5 +1,13 @@
|
||||
2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
|
||||
|
||||
+ * testsuite/libffi.call/ffitest.h: Conditionally include stdint.h
|
||||
+ and inttypes.h.
|
||||
+ * testsuite/libffi.special/unwindtest.cc: Ditto.
|
||||
+ * testsuite/libffi.call/huge_struct.c: Don't include stdint.h
|
||||
+ directly.
|
||||
+
|
||||
+2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
|
||||
+
|
||||
* configure.ac: Add amd64-*-openbsd*.
|
||||
* configure: Rebuilt.
|
||||
* testsuite/lib/libffi-dg.exp (libffi_target_compile): Link
|
||||
Index: libffi/testsuite/libffi.call/ffitest.h
|
||||
===================================================================
|
||||
--- libffi.orig/testsuite/libffi.call/ffitest.h
|
||||
+++ libffi/testsuite/libffi.call/ffitest.h
|
||||
@@ -2,11 +2,17 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
-#include <stdint.h>
|
||||
-#include <inttypes.h>
|
||||
#include <ffi.h>
|
||||
#include "fficonfig.h"
|
||||
|
||||
+#if defined HAVE_STDINT_H
|
||||
+#include <stdint.h>
|
||||
+#endif
|
||||
+
|
||||
+#if defined HAVE_INTTYPES_H
|
||||
+#include <inttypes.h>
|
||||
+#endif
|
||||
+
|
||||
#define MAX_ARGS 256
|
||||
|
||||
#define CHECK(x) !(x) ? abort() : 0
|
||||
Index: libffi/testsuite/libffi.call/huge_struct.c
|
||||
===================================================================
|
||||
--- libffi.orig/testsuite/libffi.call/huge_struct.c
|
||||
+++ libffi/testsuite/libffi.call/huge_struct.c
|
||||
@@ -10,8 +10,6 @@
|
||||
/* { dg-options -mlong-double-128 { target powerpc64*-*-* } } */
|
||||
/* { dg-output "" { xfail avr32-*-* x86_64-*-mingw* x86_64-*-cygwin* } } */
|
||||
|
||||
-#include <stdint.h>
|
||||
-
|
||||
#include "ffitest.h"
|
||||
|
||||
typedef struct BigStruct{
|
||||
Index: libffi/testsuite/libffi.special/unwindtest.cc
|
||||
===================================================================
|
||||
--- libffi.orig/testsuite/libffi.special/unwindtest.cc
|
||||
+++ libffi/testsuite/libffi.special/unwindtest.cc
|
||||
@@ -6,7 +6,14 @@
|
||||
|
||||
/* { dg-do run } */
|
||||
#include "ffitestcxx.h"
|
||||
+
|
||||
+#if defined HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
+#endif
|
||||
+
|
||||
+#if defined HAVE_INTTYPES_H
|
||||
+#include <inttypes.h>
|
||||
+#endif
|
||||
|
||||
void
|
||||
closure_test_fn(ffi_cif* cif __UNUSED__, void* resp __UNUSED__,
|
||||
@@ -7,3 +7,5 @@ powerpc-fixes
|
||||
fix-huge_struct-on-solaris
|
||||
xpass
|
||||
amd64-openbsd
|
||||
hpux
|
||||
avr32-test
|
||||
|
||||
+770
-481
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user