aboutsummaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.org>2007-11-25 19:24:23 +0000
committerAndreas Tobler <andreast@gcc.gnu.org>2007-11-25 20:24:23 +0100
commita4b7c9cd4c2df850eda972f7257ec0cdc6e60aae (patch)
tree0e660c22266bb1d9983c520da459607eeb4e859f /libffi
parent2839c1513eda51e3992da102f1af6593231d10b8 (diff)
downloadgcc-a4b7c9cd4c2df850eda972f7257ec0cdc6e60aae.zip
gcc-a4b7c9cd4c2df850eda972f7257ec0cdc6e60aae.tar.gz
gcc-a4b7c9cd4c2df850eda972f7257ec0cdc6e60aae.tar.bz2
closures.c: Move defintion of MAYBE_UNUSED from here to ...
2007-11-25 Andreas Tobler <a.tobler@schweiz.org> * src/closures.c: Move defintion of MAYBE_UNUSED from here to ... * include/ffi_common.h: ... here. Update copyright. From-SVN: r130413
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ChangeLog6
-rw-r--r--libffi/include/ffi_common.h3
-rw-r--r--libffi/src/closures.c3
3 files changed, 10 insertions, 2 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index 8aaef6e5..689bc45 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-25 Andreas Tobler <a.tobler@schweiz.org>
+
+ * src/closures.c: Move defintion of MAYBE_UNUSED from here to ...
+ * include/ffi_common.h: ... here.
+ Update copyright.
+
2007-11-17 Andreas Tobler <a.tobler@schweiz.org>
* src/powerpc/sysv.S: Load correct cr to compare if we have long double.
diff --git a/libffi/include/ffi_common.h b/libffi/include/ffi_common.h
index 3620a2e..6af4b5f 100644
--- a/libffi/include/ffi_common.h
+++ b/libffi/include/ffi_common.h
@@ -1,5 +1,6 @@
/* -----------------------------------------------------------------------
ffi_common.h - Copyright (c) 1996 Red Hat, Inc.
+ Copyright (C) 2007 Free Software Foundation, Inc
Common internal definitions and macros. Only necessary for building
libffi.
@@ -18,7 +19,9 @@ extern "C" {
this is positioned. */
#ifdef __GNUC__
# define alloca __builtin_alloca
+# define MAYBE_UNUSED __attribute__((__unused__))
#else
+# define MAYBE_UNUSED
# if HAVE_ALLOCA_H
# include <alloca.h>
# else
diff --git a/libffi/src/closures.c b/libffi/src/closures.c
index ec956d0..c441b87 100644
--- a/libffi/src/closures.c
+++ b/libffi/src/closures.c
@@ -1,5 +1,6 @@
/* -----------------------------------------------------------------------
closures.c - Copyright (c) 2007 Red Hat, Inc.
+ Copyright (C) 2007 Free Software Foundation, Inc
Code to allocate and deallocate memory for closures.
@@ -149,8 +150,6 @@ selinux_enabled_check (void)
#endif
-#define MAYBE_UNUSED __attribute__((__unused__))
-
/* Declare all functions defined in dlmalloc.c as static. */
static void *dlmalloc(size_t);
static void dlfree(void*);