aboutsummaryrefslogtreecommitdiff
path: root/libffi/fficonfig.h.in
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-08-11 23:18:24 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2005-08-11 23:18:24 +0200
commit8a42356f48f489b4e2af7b02bafac8ebaff5da09 (patch)
tree26c42f7f1f69f7735ef39926c2c1dd7be903a44c /libffi/fficonfig.h.in
parentdec1f3aa95606219f3b0f2255813a4d90c277451 (diff)
downloadgcc-8a42356f48f489b4e2af7b02bafac8ebaff5da09.zip
gcc-8a42356f48f489b4e2af7b02bafac8ebaff5da09.tar.gz
gcc-8a42356f48f489b4e2af7b02bafac8ebaff5da09.tar.bz2
configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test.
* configure.ac (HAVE_HIDDEN_VISIBILITY_ATTRIBUTE): New test. (AH_BOTTOM): Add FFI_HIDDEN definition. * configure: Rebuilt. * fficonfig.h.in: Rebuilt. * src/powerpc/ffi.c (hidden): Remove. (ffi_closure_LINUX64, ffi_prep_args64, ffi_call_LINUX64, ffi_closure_helper_LINUX64): Use FFI_HIDDEN instead of hidden. * src/powerpc/linux64_closure.S (ffi_closure_LINUX64, .ffi_closure_LINUX64): Use FFI_HIDDEN instead of .hidden. * src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV): Remove, add FFI_HIDDEN to its prototype. (ffi_closure_SYSV_inner): New. * src/x86/sysv.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New. * src/x86/win32.S (ffi_closure_SYSV, ffi_closure_raw_SYSV): New. From-SVN: r103002
Diffstat (limited to 'libffi/fficonfig.h.in')
-rw-r--r--libffi/fficonfig.h.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/libffi/fficonfig.h.in b/libffi/fficonfig.h.in
index e0cab34..f982707 100644
--- a/libffi/fficonfig.h.in
+++ b/libffi/fficonfig.h.in
@@ -34,6 +34,9 @@
*/
#undef HAVE_AS_SPARC_UA_PCREL
+/* Define if __attribute__((visibility("hidden"))) is supported. */
+#undef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
+
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
@@ -133,3 +136,19 @@
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
+
+
+#ifdef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
+#ifdef LIBFFI_ASM
+#define FFI_HIDDEN(name) .hidden name
+#else
+#define FFI_HIDDEN __attribute__ ((visibility ("hidden")))
+#endif
+#else
+#ifdef LIBFFI_ASM
+#define FFI_HIDDEN(name)
+#else
+#define FFI_HIDDEN
+#endif
+#endif
+