OSDN Git Service

Add new test - do not warn about (non-)redundant friend declaration.
[pf3gnuchains/gcc-fork.git] / gcc / system.h
index da9046a..6ef07a3 100644 (file)
@@ -93,7 +93,7 @@ extern int fputs_unlocked PARAMS ((const char *, FILE *));
 
 #include <errno.h>
 
-#ifndef errno
+#if !defined (errno) && defined (HAVE_DECL_ERRNO) && !HAVE_DECL_ERRNO
 extern int errno;
 #endif
 
@@ -240,16 +240,6 @@ extern int errno;
    here.  These checks will be in the undefined state while configure
    is running so be careful to test "defined (HAVE_DECL_*)".  */
 
-#ifndef bcopy
-# ifdef HAVE_BCOPY
-#  if defined (HAVE_DECL_BCOPY) && !HAVE_DECL_BCOPY
-extern void bcopy PARAMS ((const PTR, PTR, size_t));
-#  endif
-# else /* ! HAVE_BCOPY */
-#  define bcopy(src,dst,len) memmove((dst),(src),(len))
-# endif
-#endif
-
 #if defined (HAVE_DECL_ATOF) && !HAVE_DECL_ATOF
 extern double atof PARAMS ((const char *));
 #endif
@@ -355,21 +345,6 @@ extern void abort PARAMS ((void));
 #endif
 
 
-
-/* Define a STRINGIFY macro that's right for ANSI or traditional C.
-   Note: if the argument passed to STRINGIFY is itself a macro, eg
-   #define foo bar, STRINGIFY(foo) will produce "foo", not "bar".
-   Although the __STDC__ case could be made to expand this via a layer
-   of indirection, the traditional C case can not do so.  Therefore
-   this behavior is not supported. */
-#ifndef STRINGIFY
-# ifdef HAVE_STRINGIZE
-#  define STRINGIFY(STRING) #STRING
-# else
-#  define STRINGIFY(STRING) "STRING"
-# endif
-#endif /* ! STRINGIFY */
-
 #if HAVE_SYS_STAT_H
 # include <sys/stat.h>
 #endif
@@ -481,6 +456,7 @@ extern void abort PARAMS ((void));
 
 /* Get libiberty declarations. */
 #include "libiberty.h"
+#include "symcat.h"
 
 /* Provide a default for the HOST_BIT_BUCKET.
    This suffices for POSIX-like hosts.  */
@@ -571,12 +547,13 @@ typedef char _Bool;
  #pragma GCC poison malloc realloc calloc strdup
 #endif /* IN_GCC */
 
-/* Note: not all uses of `bcopy' and `index' (esp. variable names)
-   have been eliminated.  */
+/* Note: not all uses of the `index' token (e.g. variable names and
+   structure members) have been eliminated.  */
+#undef bcopy
 #undef bzero
 #undef bcmp
 #undef rindex
- #pragma GCC poison bzero bcmp rindex
+ #pragma GCC poison bcopy bzero bcmp rindex
 
 #endif /* GCC >= 3.0 */