summaryrefslogtreecommitdiff
path: root/gcc/collect2.h
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-31 14:53:17 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-31 14:53:17 +0000
commitd6b5203d8dbe5fffec8c3aea15a308aa64faebd5 (patch)
treee6f523f2e9436b46ac2af93fec13e0d9253901a7 /gcc/collect2.h
parent24cf2fd3090d7dd5dbd5542437959e01f26d9cac (diff)
downloadgcc-d6b5203d8dbe5fffec8c3aea15a308aa64faebd5.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97321 138bc75d-0d04-0410-961f-82ee72b054a4
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 9eabc63b252..7a8f51cacb3 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;