]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
collect2.h: New header file for prototypes.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Thu, 10 Dec 1998 10:48:27 +0000 (10:48 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Thu, 10 Dec 1998 10:48:27 +0000 (10:48 +0000)
        * 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.

From-SVN: r24231

gcc/ChangeLog
gcc/Makefile.in
gcc/collect2.c
gcc/collect2.h [new file with mode: 0644]
gcc/tlink.c

index fd306c7d9661162351a708bb14f4647bf516b537..0a52063c8d2c2357ffc2ad9685c5ec6ca9596239 100644 (file)
@@ -1,3 +1,12 @@
+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.
index 747437db2497dd15a31929dc883a955982ce6db3..a0873589723793abacf07fcaa4ff57a892197cdb 100644 (file)
@@ -1306,12 +1306,12 @@ collect2$(exeext): collect2.o tlink.o hash.o cplus-dem.o underscore.o \
          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)
index 7638e4d84620ba0e536139de604dbb37bbd5a071..978c3e73c6981f0b3b6999698617709cb8d661d1 100644 (file)
@@ -45,6 +45,7 @@ Boston, MA 02111-1307, USA.  */
 
 #define COLLECT
 
+#include "collect2.h"
 #include "demangle.h"
 #include "obstack.h"
 #ifdef __CYGWIN__
diff --git a/gcc/collect2.h b/gcc/collect2.h
new file mode 100644 (file)
index 0000000..1b1919f
--- /dev/null
@@ -0,0 +1,16 @@
+#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__ */
index 9e7403a7c0ecc75ec46b91ebd0cfcf768ecf5138..77e888ddb9a692e6a1cbcbf963b83c919b5af4a8 100644 (file)
@@ -25,6 +25,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "hash.h"
 #include "demangle.h"
 #include "toplev.h"
+#include "collect2.h"
 
 #define MAX_ITERATIONS 17