This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Fix GCC 3.0 in ld/
- To: binutils at sourceware dot cygnus dot com
- Subject: Fix GCC 3.0 in ld/
- From: Andreas Jaeger <aj at suse dot de>
- Date: 28 Apr 2000 10:07:15 +0200
There's only one patch needed for ld to work with GCC 3.0
Andreas
2000-04-28 Andreas Jaeger <aj@suse.de>
* ld.h: Correctly check for GCC version.
Index: ld/ld.h
===================================================================
RCS file: /cvs/src/src/ld/ld.h,v
retrieving revision 1.4
diff -u -r1.4 ld.h
--- ld.h 2000/04/03 14:10:05 1.4
+++ ld.h 2000/04/28 08:05:46
@@ -236,7 +236,7 @@
ATTRIBUTE_NORETURN;
/* If gcc, we can give a function name, too. */
-#if !defined (__GNUC__) || __GNUC_MINOR__ <= 5
+#if !defined (__GNUC__) || (__GNUC__ == 2 && __GNUC_MINOR__ <= 5)
#define __PRETTY_FUNCTION__ ((char*) NULL)
#endif
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de