This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

PATCH gcc/collect2.c ldtbread prototype on OSF


Hoist on my own petard. `__osf__' is provided both by GCC and the vendor
compiler otherwise this should based on `EXTENDED_COFF' define from
gcc/config/alpha/alpha.h (maybe) or autoconf.

2000-12-08  Rodney Brown  <RodneyBrown@mynd.com>

    * collect2.c (COFF specific stuff): Conditionally prototype ldbtread.

--- gcc/collect2.c.orig	Fri Dec  8 11:34:13 2000
+++ gcc/collect2.c	Fri Dec  8 11:33:44 2000
@@ -2682,8 +2682,13 @@
 #endif
 
 extern char *ldgetname PARAMS ((LDFILE *, GCC_SYMENT *));
-extern int ldtbread PARAMS ((LDFILE *, long, GCC_SYMENT *));
 extern int ldclose PARAMS ((LDFILE *));
+#ifndef __osf__
+/* alpha-dec-osf4.0e provides a prototype with second argument as `int'.
+   Prototype for rs6000-ibm-aix4.2.0.0 .
+ */
+extern int ldtbread PARAMS ((LDFILE *, long, GCC_SYMENT *));
+#endif
 
 /* COFF version to scan the name list of the loaded program for
    the symbols g++ uses for static constructors and destructors.

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