This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fix GCC 3.0 in ld/



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]