aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2005-03-29 19:39:35 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2005-03-29 19:39:35 +0000
commit1fff69c9a4ac6a18dcb45abbb311ae1e3e96c6e7 (patch)
tree14d07064a525534cdc2996c320b7f9f3da0183a9 /gcc/collect2.h
parentd1edc3936609d114f92bc547761109c2b823c8e3 (diff)
downloadgcc-1fff69c9a4ac6a18dcb45abbb311ae1e3e96c6e7.zip
gcc-1fff69c9a4ac6a18dcb45abbb311ae1e3e96c6e7.tar.gz
gcc-1fff69c9a4ac6a18dcb45abbb311ae1e3e96c6e7.tar.bz2
re PR bootstrap/14316 (collect2 doesnt build on windows hosts)
PR bootstrap/14316 * collect2.c: Never include <vfork.h>. (VFORK_STRING, vfork): Don't define. (pid): Remove global variable. (handler): Call raise instead of kill (getpid(), ...). (collect_wait): Add pex parameter. Change all callers. Use pex_get_status rather than pwait. (do_wait): Add pex parameter. Change all callers. (collect_execute): Return struct pex_obj * rather than void. Use pex routines rather than pexecute. (fork_execute): Get pex_obj from collect_execute, and pass it to do_wait. (scan_prog_file): Use pex routines rather than pipe/vfork/exec. Only declare quit_handler if SIGQUIT is defined. (scan_libraries): Likewise. * collect2.h (collect_execute): Update declaration. (collect_wait): Update declaration. * tlink.c (tlink_execute): Get pex_obj from collect_execute, and pass it to collect_wait. From-SVN: r97199
Diffstat (limited to 'gcc/collect2.h')
-rw-r--r--gcc/collect2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/collect2.h b/gcc/collect2.h
index d25009b..9eabc63 100644
--- a/gcc/collect2.h
+++ b/gcc/collect2.h
@@ -1,5 +1,5 @@
/* Header file for collect/tlink routines.
- Copyright (C) 1998, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GCC.
@@ -23,11 +23,11 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
extern void do_tlink (char **, char **);
-extern void collect_execute (const char *, char **, const char *);
+extern struct pex_obj *collect_execute (const char *, char **, const char *);
extern void collect_exit (int) ATTRIBUTE_NORETURN;
-extern int collect_wait (const char *);
+extern int collect_wait (const char *, struct pex_obj *);
extern void dump_file (const char *);