rc7. More AIX fixes.
This commit is contained in:
@@ -156,3 +156,190 @@ Index: libffi/src/powerpc/aix_closure.S
|
||||
#define LIBFFI_ASM
|
||||
#define JUMPTARGET(name) name
|
||||
#define L(x) x
|
||||
Index: libffi/configure
|
||||
===================================================================
|
||||
--- libffi.orig/configure
|
||||
+++ libffi/configure
|
||||
@@ -13313,67 +13313,69 @@ $as_echo "#define HAVE_AS_X86_64_UNWIND_
|
||||
fi
|
||||
fi
|
||||
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
|
||||
+if test "x$GCC" = "xyes"; then
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
|
||||
$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
|
||||
if ${libffi_cv_ro_eh_frame+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
|
||||
- libffi_cv_ro_eh_frame=no
|
||||
- echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
|
||||
- if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
|
||||
- if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
|
||||
- libffi_cv_ro_eh_frame=yes
|
||||
- elif grep '.section.*eh_frame.*#alloc' conftest.c \
|
||||
- | grep -v '#write' > /dev/null; then
|
||||
- libffi_cv_ro_eh_frame=yes
|
||||
- fi
|
||||
- fi
|
||||
- rm -f conftest.*
|
||||
+ libffi_cv_ro_eh_frame=no
|
||||
+ echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
|
||||
+ if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
|
||||
+ if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
|
||||
+ libffi_cv_ro_eh_frame=yes
|
||||
+ elif grep '.section.*eh_frame.*#alloc' conftest.c \
|
||||
+ | grep -v '#write' > /dev/null; then
|
||||
+ libffi_cv_ro_eh_frame=yes
|
||||
+ fi
|
||||
+ fi
|
||||
+ rm -f conftest.*
|
||||
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
|
||||
$as_echo "$libffi_cv_ro_eh_frame" >&6; }
|
||||
-if test "x$libffi_cv_ro_eh_frame" = xyes; then
|
||||
+ if test "x$libffi_cv_ro_eh_frame" = xyes; then
|
||||
|
||||
$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
|
||||
|
||||
|
||||
$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
|
||||
|
||||
-else
|
||||
+ else
|
||||
|
||||
$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
|
||||
|
||||
-fi
|
||||
+ fi
|
||||
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
|
||||
$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
|
||||
if ${libffi_cv_hidden_visibility_attribute+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
|
||||
- echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
|
||||
- libffi_cv_hidden_visibility_attribute=no
|
||||
- if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
|
||||
+ echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
|
||||
+ libffi_cv_hidden_visibility_attribute=no
|
||||
+ if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
|
||||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
test $ac_status = 0; }; }; then
|
||||
- if grep '\.hidden.*foo' conftest.s >/dev/null; then
|
||||
- libffi_cv_hidden_visibility_attribute=yes
|
||||
- fi
|
||||
- fi
|
||||
- rm -f conftest.*
|
||||
+ if grep '\.hidden.*foo' conftest.s >/dev/null; then
|
||||
+ libffi_cv_hidden_visibility_attribute=yes
|
||||
+ fi
|
||||
+ fi
|
||||
+ rm -f conftest.*
|
||||
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
|
||||
$as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
|
||||
-if test $libffi_cv_hidden_visibility_attribute = yes; then
|
||||
+ if test $libffi_cv_hidden_visibility_attribute = yes; then
|
||||
|
||||
$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
|
||||
|
||||
+ fi
|
||||
fi
|
||||
|
||||
|
||||
Index: libffi/configure.ac
|
||||
===================================================================
|
||||
--- libffi.orig/configure.ac
|
||||
+++ libffi/configure.ac
|
||||
@@ -351,44 +351,46 @@ if test x$TARGET = xX86_64; then
|
||||
fi
|
||||
fi
|
||||
|
||||
-AC_CACHE_CHECK([whether .eh_frame section should be read-only],
|
||||
- libffi_cv_ro_eh_frame, [
|
||||
- libffi_cv_ro_eh_frame=no
|
||||
- echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
|
||||
- if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
|
||||
- if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
|
||||
- libffi_cv_ro_eh_frame=yes
|
||||
- elif grep '.section.*eh_frame.*#alloc' conftest.c \
|
||||
- | grep -v '#write' > /dev/null; then
|
||||
- libffi_cv_ro_eh_frame=yes
|
||||
- fi
|
||||
- fi
|
||||
- rm -f conftest.*
|
||||
- ])
|
||||
-if test "x$libffi_cv_ro_eh_frame" = xyes; then
|
||||
- AC_DEFINE(HAVE_RO_EH_FRAME, 1,
|
||||
- [Define if .eh_frame sections should be read-only.])
|
||||
- AC_DEFINE(EH_FRAME_FLAGS, "a",
|
||||
- [Define to the flags needed for the .section .eh_frame directive.])
|
||||
-else
|
||||
- AC_DEFINE(EH_FRAME_FLAGS, "aw",
|
||||
- [Define to the flags needed for the .section .eh_frame directive.])
|
||||
-fi
|
||||
+if test "x$GCC" = "xyes"; then
|
||||
+ AC_CACHE_CHECK([whether .eh_frame section should be read-only],
|
||||
+ libffi_cv_ro_eh_frame, [
|
||||
+ libffi_cv_ro_eh_frame=no
|
||||
+ echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
|
||||
+ if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
|
||||
+ if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
|
||||
+ libffi_cv_ro_eh_frame=yes
|
||||
+ elif grep '.section.*eh_frame.*#alloc' conftest.c \
|
||||
+ | grep -v '#write' > /dev/null; then
|
||||
+ libffi_cv_ro_eh_frame=yes
|
||||
+ fi
|
||||
+ fi
|
||||
+ rm -f conftest.*
|
||||
+ ])
|
||||
+ if test "x$libffi_cv_ro_eh_frame" = xyes; then
|
||||
+ AC_DEFINE(HAVE_RO_EH_FRAME, 1,
|
||||
+ [Define if .eh_frame sections should be read-only.])
|
||||
+ AC_DEFINE(EH_FRAME_FLAGS, "a",
|
||||
+ [Define to the flags needed for the .section .eh_frame directive. ])
|
||||
+ else
|
||||
+ AC_DEFINE(EH_FRAME_FLAGS, "aw",
|
||||
+ [Define to the flags needed for the .section .eh_frame directive. ])
|
||||
+ fi
|
||||
|
||||
-AC_CACHE_CHECK([for __attribute__((visibility("hidden")))],
|
||||
- libffi_cv_hidden_visibility_attribute, [
|
||||
- echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
|
||||
- libffi_cv_hidden_visibility_attribute=no
|
||||
- if AC_TRY_COMMAND(${CC-cc} -Werror -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then
|
||||
- if grep '\.hidden.*foo' conftest.s >/dev/null; then
|
||||
- libffi_cv_hidden_visibility_attribute=yes
|
||||
- fi
|
||||
- fi
|
||||
- rm -f conftest.*
|
||||
- ])
|
||||
-if test $libffi_cv_hidden_visibility_attribute = yes; then
|
||||
- AC_DEFINE(HAVE_HIDDEN_VISIBILITY_ATTRIBUTE, 1,
|
||||
- [Define if __attribute__((visibility("hidden"))) is supported.])
|
||||
+ AC_CACHE_CHECK([for __attribute__((visibility("hidden")))],
|
||||
+ libffi_cv_hidden_visibility_attribute, [
|
||||
+ echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
|
||||
+ libffi_cv_hidden_visibility_attribute=no
|
||||
+ if AC_TRY_COMMAND(${CC-cc} -Werror -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then
|
||||
+ if grep '\.hidden.*foo' conftest.s >/dev/null; then
|
||||
+ libffi_cv_hidden_visibility_attribute=yes
|
||||
+ fi
|
||||
+ fi
|
||||
+ rm -f conftest.*
|
||||
+ ])
|
||||
+ if test $libffi_cv_hidden_visibility_attribute = yes; then
|
||||
+ AC_DEFINE(HAVE_HIDDEN_VISIBILITY_ATTRIBUTE, 1,
|
||||
+ [Define if __attribute__((visibility("hidden"))) is supported.])
|
||||
+ fi
|
||||
fi
|
||||
|
||||
AH_BOTTOM([
|
||||
|
||||
6019
patches/fix-ppc32
6019
patches/fix-ppc32
File diff suppressed because it is too large
Load Diff
1687
patches/fix_maxopt
1687
patches/fix_maxopt
File diff suppressed because it is too large
Load Diff
28
patches/ios
28
patches/ios
@@ -214,15 +214,7 @@ Index: libffi/Makefile.in
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
HAVE_LONG_DOUBLE = @HAVE_LONG_DOUBLE@
|
||||
@@ -386,6 +389,7 @@ psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
+sys_symbol_underscore = @sys_symbol_underscore@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
@@ -399,37 +403,34 @@ top_builddir = @top_builddir@
|
||||
@@ -399,37 +402,34 @@ top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = foreign subdir-objects
|
||||
SUBDIRS = include testsuite man
|
||||
@@ -288,7 +280,7 @@ Index: libffi/Makefile.in
|
||||
|
||||
info_TEXINFOS = doc/libffi.texi
|
||||
|
||||
@@ -488,10 +489,10 @@ nodist_libffi_la_SOURCES = $(am__append_
|
||||
@@ -488,10 +488,10 @@ nodist_libffi_la_SOURCES = $(am__append_
|
||||
$(am__append_15) $(am__append_16) $(am__append_17) \
|
||||
$(am__append_18) $(am__append_19) $(am__append_20) \
|
||||
$(am__append_21) $(am__append_22) $(am__append_23) \
|
||||
@@ -301,7 +293,7 @@ Index: libffi/Makefile.in
|
||||
libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
|
||||
AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
|
||||
AM_CCASFLAGS = $(AM_CPPFLAGS)
|
||||
@@ -727,6 +728,8 @@ src/arm/sysv.lo: src/arm/$(am__dirstamp)
|
||||
@@ -727,6 +727,8 @@ src/arm/sysv.lo: src/arm/$(am__dirstamp)
|
||||
src/arm/$(DEPDIR)/$(am__dirstamp)
|
||||
src/arm/ffi.lo: src/arm/$(am__dirstamp) \
|
||||
src/arm/$(DEPDIR)/$(am__dirstamp)
|
||||
@@ -310,7 +302,7 @@ Index: libffi/Makefile.in
|
||||
src/avr32/$(am__dirstamp):
|
||||
@$(MKDIR_P) src/avr32
|
||||
@: > src/avr32/$(am__dirstamp)
|
||||
@@ -814,6 +817,8 @@ mostlyclean-compile:
|
||||
@@ -814,6 +816,8 @@ mostlyclean-compile:
|
||||
-rm -f src/arm/ffi.lo
|
||||
-rm -f src/arm/sysv.$(OBJEXT)
|
||||
-rm -f src/arm/sysv.lo
|
||||
@@ -319,7 +311,7 @@ Index: libffi/Makefile.in
|
||||
-rm -f src/avr32/ffi.$(OBJEXT)
|
||||
-rm -f src/avr32/ffi.lo
|
||||
-rm -f src/avr32/sysv.$(OBJEXT)
|
||||
@@ -932,6 +937,7 @@ distclean-compile:
|
||||
@@ -932,6 +936,7 @@ distclean-compile:
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@src/alpha/$(DEPDIR)/osf.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@src/arm/$(DEPDIR)/ffi.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@src/arm/$(DEPDIR)/sysv.Plo@am__quote@
|
||||
@@ -369,16 +361,6 @@ Index: libffi/fficonfig.h.in
|
||||
/* Cannot use malloc on this target, so, we revert to alternative means */
|
||||
#undef FFI_MMAP_EXEC_WRIT
|
||||
|
||||
@@ -157,6 +160,9 @@
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
+/* Define if symbols are underscored. */
|
||||
+#undef SYMBOL_UNDERSCORE
|
||||
+
|
||||
/* Define this if you are using Purify and want to suppress spurious messages.
|
||||
*/
|
||||
#undef USING_PURIFY
|
||||
Index: libffi/src/arm/ffi.c
|
||||
===================================================================
|
||||
--- libffi.orig/src/arm/ffi.c
|
||||
|
||||
@@ -16,7 +16,7 @@ Index: libffi/Makefile.in
|
||||
===================================================================
|
||||
--- libffi.orig/Makefile.in
|
||||
+++ libffi/Makefile.in
|
||||
@@ -441,7 +441,8 @@ EXTRA_DIST = LICENSE ChangeLog.v1 Change
|
||||
@@ -440,7 +440,8 @@ EXTRA_DIST = LICENSE ChangeLog.v1 Change
|
||||
src/frv/ffitarget.h src/dlmalloc.c src/moxie/ffi.c \
|
||||
src/moxie/eabi.S libtool-version ChangeLog.libffi \
|
||||
m4/libtool.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
|
||||
|
||||
@@ -233,7 +233,7 @@ Index: libffi/Makefile.in
|
||||
libffi_convenience_la_OBJECTS = $(am_libffi_convenience_la_OBJECTS) \
|
||||
$(nodist_libffi_convenience_la_OBJECTS)
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@
|
||||
@@ -430,7 +433,7 @@ EXTRA_DIST = LICENSE ChangeLog.v1 Change
|
||||
@@ -429,7 +432,7 @@ EXTRA_DIST = LICENSE ChangeLog.v1 Change
|
||||
src/frv/ffitarget.h src/dlmalloc.c src/moxie/ffi.c \
|
||||
src/moxie/eabi.S libtool-version ChangeLog.libffi \
|
||||
m4/libtool.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 \
|
||||
@@ -242,7 +242,7 @@ Index: libffi/Makefile.in
|
||||
|
||||
info_TEXINFOS = doc/libffi.texi
|
||||
|
||||
@@ -476,7 +479,7 @@ MAKEOVERRIDES =
|
||||
@@ -475,7 +478,7 @@ MAKEOVERRIDES =
|
||||
ACLOCAL_AMFLAGS = $(ACLOCAL_AMFLAGS) -I m4
|
||||
lib_LTLIBRARIES = libffi.la
|
||||
noinst_LTLIBRARIES = libffi_convenience.la
|
||||
@@ -251,7 +251,7 @@ Index: libffi/Makefile.in
|
||||
src/raw_api.c src/java_raw_api.c src/closures.c
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
@@ -489,10 +492,11 @@ nodist_libffi_la_SOURCES = $(am__append_
|
||||
@@ -488,10 +491,11 @@ nodist_libffi_la_SOURCES = $(am__append_
|
||||
$(am__append_15) $(am__append_16) $(am__append_17) \
|
||||
$(am__append_18) $(am__append_19) $(am__append_20) \
|
||||
$(am__append_21) $(am__append_22) $(am__append_23) \
|
||||
@@ -265,7 +265,7 @@ Index: libffi/Makefile.in
|
||||
libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
|
||||
AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
|
||||
AM_CCASFLAGS = $(AM_CPPFLAGS)
|
||||
@@ -600,12 +604,12 @@ src/$(am__dirstamp):
|
||||
@@ -599,12 +603,12 @@ src/$(am__dirstamp):
|
||||
src/$(DEPDIR)/$(am__dirstamp):
|
||||
@$(MKDIR_P) src/$(DEPDIR)
|
||||
@: > src/$(DEPDIR)/$(am__dirstamp)
|
||||
|
||||
1699
patches/ungccify
1699
patches/ungccify
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user