This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
GCC 3.0 change for gas
- To: binutils at sourceware dot cygnus dot com
- Subject: GCC 3.0 change for gas
- From: Andreas Jaeger <aj at suse dot de>
- Date: 28 Apr 2000 10:03:34 +0200
Here comes another problem with GNUC_MINOR.
2000-04-28 Andreas Jaeger <aj@suse.de>
* as.h: Properly check for GCC version.
Index: gas/as.h
===================================================================
RCS file: /cvs/src/src/gas/as.h,v
retrieving revision 1.11
diff -u -r1.11 as.h
--- as.h 2000/04/14 04:14:25 1.11
+++ as.h 2000/04/28 08:03:15
@@ -112,7 +112,7 @@
#ifdef DEBUG
#undef NDEBUG
#endif
-#if !defined (__GNUC__) || __GNUC_MINOR__ <= 5
+#if !defined (__GNUC__) || (__GNUC__ == 2 && __GNUC_MINOR__ <= 5)
#define __PRETTY_FUNCTION__ ((char*)0)
#endif
#if 0
@@ -512,7 +512,7 @@
#if (__GNUC__ >= 2) && !defined(VMS)
/* for use with -Wformat */
-#if __GNUC_MINOR__ < 6
+#if (__GNUC__ == 2 && __GNUC_MINOR__ < 6)
/* Support for double underscores in attribute names was added in gcc
2.6, so avoid them if we are using an earlier version. */
#define __printf__ printf
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de