Skip to content

Commit

Permalink
Ensure that users don't include ffitarget.h directly
Browse files Browse the repository at this point in the history
  • Loading branch information
atgreen committed Feb 23, 2012
1 parent d578b89 commit 8360bf1
Show file tree
Hide file tree
Showing 114 changed files with 2,871 additions and 713 deletions.
18 changes: 18 additions & 0 deletions .pc/aix-ibm-xlc/ChangeLog
@@ -1,3 +1,21 @@
2012-02-10 Kai Tietz <ktietz@redhat.com>

* configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
windows target.
* configure: Regenerated.

2012-02-08 Kai Tietz <ktietz@redhat.com>

* src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
also FFI_THISCALL.
* src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
(FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
(ffi_prep_closure_loc): Add FFI_THISCALL support.
* src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
* src/x86/win32.S (ffi_closure_THISCALL): New closure code
for thiscall-calling convention.
* testsuite/libffi.call/closure_thiscall.c: New test.

2012-01-28 Kai Tietz <ktietz@redhat.com>

* src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
Expand Down
9 changes: 9 additions & 0 deletions .pc/aix-ibm-xlc/configure
Expand Up @@ -12167,6 +12167,15 @@ case "$host" in

x86_64-*-cygwin* | x86_64-*-mingw*)
TARGET=X86_WIN64; TARGETDIR=x86
# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
# We must also check with_cross_host to decide if this is a native
# or cross-build and select where to install dlls appropriately.
if test -n "$with_cross_host" &&
test x"$with_cross_host" != x"no"; then
AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
else
AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
fi
;;

x86_64-*-*)
Expand Down
9 changes: 9 additions & 0 deletions .pc/aix-ibm-xlc/configure.ac
Expand Up @@ -178,6 +178,15 @@ case "$host" in

x86_64-*-cygwin* | x86_64-*-mingw*)
TARGET=X86_WIN64; TARGETDIR=x86
# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
# We must also check with_cross_host to decide if this is a native
# or cross-build and select where to install dlls appropriately.
if test -n "$with_cross_host" &&
test x"$with_cross_host" != x"no"; then
AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
else
AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
fi
;;

x86_64-*-*)
Expand Down
18 changes: 18 additions & 0 deletions .pc/alpha/ChangeLog
@@ -1,3 +1,21 @@
2012-02-10 Kai Tietz <ktietz@redhat.com>

* configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
windows target.
* configure: Regenerated.

2012-02-08 Kai Tietz <ktietz@redhat.com>

* src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
also FFI_THISCALL.
* src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
(FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
(ffi_prep_closure_loc): Add FFI_THISCALL support.
* src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
* src/x86/win32.S (ffi_closure_THISCALL): New closure code
for thiscall-calling convention.
* testsuite/libffi.call/closure_thiscall.c: New test.

2012-01-28 Kai Tietz <ktietz@redhat.com>

* src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
Expand Down
18 changes: 18 additions & 0 deletions .pc/amiga/ChangeLog
@@ -1,3 +1,21 @@
2012-02-10 Kai Tietz <ktietz@redhat.com>

* configure.ac (AM_LTLDFLAGS): Add -no-undefine for x64
windows target.
* configure: Regenerated.

2012-02-08 Kai Tietz <ktietz@redhat.com>

* src/prep_cif.c (ffi_prep_cif): Allow for X86_WIN32
also FFI_THISCALL.
* src/x86/ffi.c (ffi_closure_THISCALL): Add prototype.
(FFI_INIT_TRAMPOLINE_THISCALL): New trampoline code.
(ffi_prep_closure_loc): Add FFI_THISCALL support.
* src/x86/ffitarget.h (FFI_TRAMPOLINE_SIZE): Adjust size.
* src/x86/win32.S (ffi_closure_THISCALL): New closure code
for thiscall-calling convention.
* testsuite/libffi.call/closure_thiscall.c: New test.

2012-01-28 Kai Tietz <ktietz@redhat.com>

* src/libffi/src/x86/ffi.c (ffi_call_win32): Add new
Expand Down
9 changes: 9 additions & 0 deletions .pc/amiga/configure
Expand Up @@ -12178,6 +12178,15 @@ case "$host" in

x86_64-*-cygwin* | x86_64-*-mingw*)
TARGET=X86_WIN64; TARGETDIR=x86
# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
# We must also check with_cross_host to decide if this is a native
# or cross-build and select where to install dlls appropriately.
if test -n "$with_cross_host" &&
test x"$with_cross_host" != x"no"; then
AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
else
AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
fi
;;

x86_64-*-*)
Expand Down
9 changes: 9 additions & 0 deletions .pc/amiga/configure.ac
Expand Up @@ -186,6 +186,15 @@ case "$host" in

x86_64-*-cygwin* | x86_64-*-mingw*)
TARGET=X86_WIN64; TARGETDIR=x86
# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
# We must also check with_cross_host to decide if this is a native
# or cross-build and select where to install dlls appropriately.
if test -n "$with_cross_host" &&
test x"$with_cross_host" != x"no"; then
AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
else
AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
fi
;;

x86_64-*-*)
Expand Down
1 change: 1 addition & 0 deletions .pc/applied-patches
Expand Up @@ -41,3 +41,4 @@ unlikely
amiga
alpha
autoconf-archive-update
ffitarget-include-fix
1 change: 0 additions & 1 deletion .pc/autoconf-archive-update/Makefile.in
Expand Up @@ -394,7 +394,6 @@ psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sys_symbol_underscore = @sys_symbol_underscore@
sysconfdir = @sysconfdir@
target = @target@
target_alias = @target_alias@
Expand Down
92 changes: 0 additions & 92 deletions .pc/autoconf-archive-update/acinclude.m4

This file was deleted.

11 changes: 10 additions & 1 deletion .pc/autoconf-archive-update/configure
Expand Up @@ -12181,6 +12181,15 @@ case "$host" in

x86_64-*-cygwin* | x86_64-*-mingw*)
TARGET=X86_WIN64; TARGETDIR=x86
# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
# We must also check with_cross_host to decide if this is a native
# or cross-build and select where to install dlls appropriately.
if test -n "$with_cross_host" &&
test x"$with_cross_host" != x"no"; then
AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
else
AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
fi
;;

x86_64-*-*)
Expand Down Expand Up @@ -13310,7 +13319,7 @@ case "$target" in
$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h

;;
*-apple-darwin1[10]* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
*-apple-darwin1[10]* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)

$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h

Expand Down
2 changes: 0 additions & 2 deletions .pc/autoconf-archive-update/include/Makefile.in
Expand Up @@ -107,7 +107,6 @@ ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FFI_EXEC_TRAMPOLINE_TABLE = @FFI_EXEC_TRAMPOLINE_TABLE@
FGREP = @FGREP@
GREP = @GREP@
HAVE_LONG_DOUBLE = @HAVE_LONG_DOUBLE@
Expand Down Expand Up @@ -197,7 +196,6 @@ psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sys_symbol_underscore = @sys_symbol_underscore@
sysconfdir = @sysconfdir@
target = @target@
target_alias = @target_alias@
Expand Down
70 changes: 0 additions & 70 deletions .pc/autoconf-archive-update/m4/ax_configure_args.m4

This file was deleted.

0 comments on commit 8360bf1

Please sign in to comment.