This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH gcc/collect2.c ldtbread prototype on OSF
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH gcc/collect2.c ldtbread prototype on OSF
- From: RDBrown at mira dot net
- Date: Sun, 10 Dec 2000 21:55:40 +1100 (EST)
- Reply-To: RDBrown at mira dot net,RodneyBrown at mynd dot com
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.