* Makefile.in (collect2.o, tlink.o): Depend on collect2.h.
* collect2.c: Include collect2.h.
* tlink.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24231
138bc75d-0d04-0410-961f-
82ee72b054a4
+Thu Dec 10 13:39:46 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * collect2.h: New header file for prototypes.
+
+ * Makefile.in (collect2.o, tlink.o): Depend on collect2.h.
+
+ * collect2.c: Include collect2.h.
+ * tlink.c: Likewise.
+
Wed Dec 9 23:55:11 1998 Jeffrey A Law (law@cygnus.com)
* flow.c: Update some comments.
cplus-dem.o underscore.o version.o choose-temp.o mkstemp.o $(LIBS)
collect2.o : collect2.c $(CONFIG_H) system.h gstab.h \
- $(srcdir)/../include/obstack.h $(DEMANGLE_H)
+ $(srcdir)/../include/obstack.h $(DEMANGLE_H) collect2.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-DTARGET_MACHINE=\"$(target_alias)\" $(MAYBE_USE_COLLECT2) \
-c `echo $(srcdir)/collect2.c | sed 's,^\./,,'`
-tlink.o: tlink.c $(DEMANGLE_H) hash.h $(CONFIG_H) system.h toplev.h
+tlink.o: tlink.c $(DEMANGLE_H) hash.h $(CONFIG_H) system.h toplev.h collect2.h
hash.o: hash.c hash.h system.h toplev.h
cplus-dem.o: $(srcdir)/../libiberty/cplus-dem.c $(DEMANGLE_H)
#define COLLECT
+#include "collect2.h"
#include "demangle.h"
#include "obstack.h"
#ifdef __CYGWIN__
--- /dev/null
+#ifndef __COLLECT2_H__
+#define __COLLECT2_H__
+
+extern void do_tlink PARAMS ((char **, char **));
+
+extern void collect_execute PARAMS ((char *, char **, char *));
+
+extern void collect_exit PARAMS ((int)) ATTRIBUTE_NORETURN;
+
+extern int collect_wait PARAMS ((char *));
+
+extern void dump_file PARAMS ((char *));
+
+extern int file_exists PARAMS ((char *));
+
+#endif /* ! __COLLECT2_H__ */
#include "hash.h"
#include "demangle.h"
#include "toplev.h"
+#include "collect2.h"
#define MAX_ITERATIONS 17