about summary refs log tree commit diff
path: root/misc/sys
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-02 01:19:29 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-02 01:19:29 +0000
commitca8d5a5f3dea0f541fc3c388b6cb01a2d27e9924 (patch)
treed8267bf4da68e57f15d9e0fff328187a34876514 /misc/sys
parent8fb81470d9466b7e3d60cbfd6fc2d04fd1aae78a (diff)
downloadglibc-ca8d5a5f3dea0f541fc3c388b6cb01a2d27e9924.tar.gz
glibc-ca8d5a5f3dea0f541fc3c388b6cb01a2d27e9924.tar.xz
glibc-ca8d5a5f3dea0f541fc3c388b6cb01a2d27e9924.zip
Update.
	* sysdeps/ia64/bits/byteswap.h: New file.
	Patch by Dan Pop <Dan.Pop@cern.ch>.

	* misc/sys/cdefs.h: Define __attribute_format_arg__.
	* intl/libintl.h: Use it here instead of using __attribute__ directly.

2000-07-13  H.J. Lu  <hjl@gnu.org>

	* posix/regex.c (re_max_failures): Set to 4000.

2000-08-01  Ulrich Drepper  <drepper@redhat.com>
Diffstat (limited to 'misc/sys')
-rw-r--r--misc/sys/cdefs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index dd06a6653a..9960239688 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -141,6 +141,15 @@
 # define __attribute_pure__ /* Ignore */
 #endif
 
+/* At some point during the gcc 2.8 development the `format_arg' attribute
+   for functions was introduced.  We don't want to use it unconditionally
+   (although this would be possible) since it generates warnings.  */
+#if __GNUC_PREREQ (2,8)
+# define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x)))
+#else
+# define __attribute_format_arg__(x) /* Ignore */
+#endif
+
 /* It is possible to compile containing GCC extensions even if GCC is
    run in pedantic mode if the uses are carefully marked using the
    `__extension__' keyword.  But this is not generally available before