aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-01-19 15:37:37 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1997-01-19 15:37:37 -0500
commit883dc89ca676d703431db2490b72ca80c0696eb5 (patch)
treec22e0bfc275ace5b954915eba24250f6b7daef84
parentc0298b551f42f6ebee9f71e2b8f71443dfcec841 (diff)
downloadgcc-883dc89ca676d703431db2490b72ca80c0696eb5.zip
gcc-883dc89ca676d703431db2490b72ca80c0696eb5.tar.gz
gcc-883dc89ca676d703431db2490b72ca80c0696eb5.tar.bz2
#define __attribute__ to be null if compiling with GCC older than 2.7,
not 2.6. From-SVN: r13522
-rw-r--r--gcc/cccp.c2
-rw-r--r--gcc/cexp.y2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 930c914..93f5c35 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 93d3c3b..7155207 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