diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-12-10 10:48:27 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-12-10 10:48:27 +0000 |
commit | 2edfd4ee535fd5b837b69128e37bcdb389292387 (patch) | |
tree | ddf724895c1fcc9c46b68bba106e5e4b828d44e4 | |
parent | 72b1c47924070238e75c754ac3fdfdf980acee81 (diff) | |
download | gcc-2edfd4ee535fd5b837b69128e37bcdb389292387.zip gcc-2edfd4ee535fd5b837b69128e37bcdb389292387.tar.gz gcc-2edfd4ee535fd5b837b69128e37bcdb389292387.tar.bz2 |
collect2.h: New header file for prototypes.
* 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
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/Makefile.in | 4 | ||||
-rw-r--r-- | gcc/collect2.c | 1 | ||||
-rw-r--r-- | gcc/collect2.h | 16 | ||||
-rw-r--r-- | gcc/tlink.c | 1 |
5 files changed, 29 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fd306c7..0a52063 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 747437d..a087358 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -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) diff --git a/gcc/collect2.c b/gcc/collect2.c index 7638e4d..978c3e7 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -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 index 0000000..1b1919f --- /dev/null +++ b/gcc/collect2.h @@ -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__ */ diff --git a/gcc/tlink.c b/gcc/tlink.c index 9e7403a..77e888d 100644 --- a/gcc/tlink.c +++ b/gcc/tlink.c @@ -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 |