From ca8d5a5f3dea0f541fc3c388b6cb01a2d27e9924 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 2 Aug 2000 01:19:29 +0000 Subject: Update. * sysdeps/ia64/bits/byteswap.h: New file. Patch by Dan Pop . * 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 * posix/regex.c (re_max_failures): Set to 4000. 2000-08-01 Ulrich Drepper --- misc/sys/cdefs.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'misc/sys') 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 -- cgit v1.2.3