From: Richard Kenner Date: Sun, 19 Jan 1997 20:37:37 +0000 (-0500) Subject: #define __attribute__ to be null if compiling with GCC older than 2.7, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=883dc89ca676d703431db2490b72ca80c0696eb5;p=gcc.git #define __attribute__ to be null if compiling with GCC older than 2.7, not 2.6. From-SVN: r13522 --- diff --git a/gcc/cccp.c b/gcc/cccp.c index 930c9143b6e..93f5c355c47 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -174,7 +174,7 @@ my_bzero (b, length) # endif /* !defined (BSTRING) && (defined (USG) || defined (VMS)) */ #endif /* ! STDC_HEADERS */ -#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 6) +#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __attribute__(x) #endif diff --git a/gcc/cexp.y b/gcc/cexp.y index 93d3c3b6a0b..7155207946c 100644 --- a/gcc/cexp.y +++ b/gcc/cexp.y @@ -101,7 +101,7 @@ struct arglist { #endif -#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 6) +#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __attribute__(x) #endif