aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2005-03-31 14:53:17 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2005-03-31 14:53:17 +0000
commit68ec3111c0ff30d2dc2f172897379cc891ae180d (patch)
treee6f523f2e9436b46ac2af93fec13e0d9253901a7 /gcc/collect2.h
parent0992247bffbe06f3bab081ca27fa3699950a28f8 (diff)
downloadgcc-68ec3111c0ff30d2dc2f172897379cc891ae180d.zip
gcc-68ec3111c0ff30d2dc2f172897379cc891ae180d.tar.gz
gcc-68ec3111c0ff30d2dc2f172897379cc891ae180d.tar.bz2
collect2.c (lderrout): New variable.
* collect2.c (lderrout): New variable. (collect_exit): Dump ldout to stdout. Dump and unlink lderrout, if it is set, to stderr. (handler): Unlink lderrout if it is set. (dump_file): Add "to" parameter. Change all callers. (main): Initialize lderrout. (collect_execute): Add errname parameter. Change all callers. Rename redir parameter to outname. Never pass PEX_STDERR_TO_STDOUT to pex_run. * collect2.h (collect_execute, dump_file): Update declarations. * tlink.c (tlink_execute): Add errname parameter. Change all callers. (do_tlink): Check lderrout as well as ldout. From-SVN: r97321
Diffstat (limited to 'gcc/collect2.h')
-rw-r--r--gcc/collect2.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/collect2.h b/gcc/collect2.h
index 9eabc63..7a8f51c 100644
--- a/gcc/collect2.h
+++ b/gcc/collect2.h
@@ -23,17 +23,19 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
extern void do_tlink (char **, char **);
-extern struct pex_obj *collect_execute (const char *, char **, const char *);
+extern struct pex_obj *collect_execute (const char *, char **, const char *,
+ const char *);
extern void collect_exit (int) ATTRIBUTE_NORETURN;
extern int collect_wait (const char *, struct pex_obj *);
-extern void dump_file (const char *);
+extern void dump_file (const char *, FILE *);
extern int file_exists (const char *);
extern const char *ldout;
+extern const char *lderrout;
extern const char *c_file_name;
extern struct obstack temporary_obstack;
extern char *temporary_firstobj;