Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (21 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28dir.info
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/include/ansidecl.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    137137#endif /* GCC_VERSION */
    138138
    139 #if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32)
     139#if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32) || (defined(__alpha) && defined(__cplusplus))
    140140/* All known AIX compilers implement these things (but don't always
    141141   define __STDC__).  The RISC/OS MIPS compiler defines these things
    142142   in SVR4 mode, but does not define __STDC__.  */
     143/* eraxxon@alumni.rice.edu: The Compaq C++ compiler, unlike many other
     144   C++ compilers, does not define __STDC__, though it acts as if this
     145   was so. (Verified versions: 5.7, 6.2, 6.3, 6.5) */
    143146
    144147#define ANSI_PROTOTYPES 1
     
    266269#endif /* ATTRIBUTE_NORETURN */
    267270
     271/* Attribute `nonnull' was valid as of gcc 3.3.  */
     272#ifndef ATTRIBUTE_NONNULL
     273# if (GCC_VERSION >= 3003)
     274#  define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))
     275# else
     276#  define ATTRIBUTE_NONNULL(m)
     277# endif /* GNUC >= 3.3 */
     278#endif /* ATTRIBUTE_NONNULL */
     279
     280/* Use ATTRIBUTE_PRINTF when the format specifier must not be NULL.
     281   This was the case for the `printf' format attribute by itself
     282   before GCC 3.3, but as of 3.3 we need to add the `nonnull'
     283   attribute to retain this behavior.  */
    268284#ifndef ATTRIBUTE_PRINTF
    269 #define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n)))
     285#define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) ATTRIBUTE_NONNULL(m)
    270286#define ATTRIBUTE_PRINTF_1 ATTRIBUTE_PRINTF(1, 2)
    271287#define ATTRIBUTE_PRINTF_2 ATTRIBUTE_PRINTF(2, 3)
     
    274290#define ATTRIBUTE_PRINTF_5 ATTRIBUTE_PRINTF(5, 6)
    275291#endif /* ATTRIBUTE_PRINTF */
     292
     293/* Use ATTRIBUTE_NULL_PRINTF when the format specifier may be NULL.  A
     294   NULL format specifier was allowed as of gcc 3.3.  */
     295#ifndef ATTRIBUTE_NULL_PRINTF
     296# if (GCC_VERSION >= 3003)
     297#  define ATTRIBUTE_NULL_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n)))
     298# else
     299#  define ATTRIBUTE_NULL_PRINTF(m, n)
     300# endif /* GNUC >= 3.3 */
     301# define ATTRIBUTE_NULL_PRINTF_1 ATTRIBUTE_NULL_PRINTF(1, 2)
     302# define ATTRIBUTE_NULL_PRINTF_2 ATTRIBUTE_NULL_PRINTF(2, 3)
     303# define ATTRIBUTE_NULL_PRINTF_3 ATTRIBUTE_NULL_PRINTF(3, 4)
     304# define ATTRIBUTE_NULL_PRINTF_4 ATTRIBUTE_NULL_PRINTF(4, 5)
     305# define ATTRIBUTE_NULL_PRINTF_5 ATTRIBUTE_NULL_PRINTF(5, 6)
     306#endif /* ATTRIBUTE_NULL_PRINTF */
    276307
    277308/* We use __extension__ in some places to suppress -pedantic warnings
Note: See TracChangeset for help on using the changeset viewer.