From b30bce6b52996616cb627a68222fbf5d8be9d4b9 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 10 Oct 1999 13:02:41 +0000 Subject: ansidecl.h (HAVE_GCC_VERSION): New macro. include: * ansidecl.h (HAVE_GCC_VERSION): New macro. Use instead of explicitly testing __GNUC__ and __GNUC_MINOR__. (ATTRIBUTE_PRINTF): Use `__format__', not `format'. gcc: * cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing __GNUC__ and __GNUC_MINOR__. * gansidecl.h: Likewise. * rtl.c: Likewise. * rtl.h: Likewise. * toplev.h: Likewise. * tree.c: Likewise. * tree.h: Likewise. * varray.c: Likewise. * varray.h: Likewise. cp: * cp-tree.h: Use HAVE_GCC_VERSION instead of explicitly testing __GNUC__ and __GNUC_MINOR__. f: * proj.h: Use HAVE_GCC_VERSION instead of explicitly testing __GNUC__ and __GNUC_MINOR__. Don't define BUILT_WITH_270. Define macro UNUSED in terms of ATTRIBUTE_UNUSED. From-SVN: r29890 --- gcc/varray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/varray.h') diff --git a/gcc/varray.h b/gcc/varray.h index 53b164b..b826b63 100644 --- a/gcc/varray.h +++ b/gcc/varray.h @@ -163,7 +163,7 @@ extern varray_type varray_grow PROTO((varray_type, size_t)); #define VARRAY_SIZE(VA) ((VA)->num_elements) /* Check for VARRAY_xxx macros being in bound. */ -#if defined ENABLE_CHECKING && (__GNUC__ > 2 || (__GNUC__ == 2 &&__GNUC_MINOR__ > 6)) +#if defined ENABLE_CHECKING && HAVE_GCC_VERSION(2,7) extern void varray_check_failed PROTO ((varray_type, size_t, const char *, int, const char *)) ATTRIBUTE_NORETURN; -- cgit v1.1