From c159e0b70c77b50a2a4b583dcff0244d63a5eb80 Mon Sep 17 00:00:00 2001 From: froydnj Date: Tue, 8 May 2007 00:37:39 +0000 Subject: include/ 2007-05-07 Nathan Froyd * libiberty.h (writeargv): Declare. libiberty/ 2007-05-07 Nathan Froyd * argv.c (writeargv): New function. gcc/ 2007-05-07 Nathan Froyd * gcc.c (at_file_supplied): New variable. (main): Set it if we expanded argv. (do_spec_1): Pass an @-file to the linker if we were called with an @-file argument and HAVE_GNU_LD. * collect2.c (at_file_supplied): New variable. (response_file): New variable. (collect_exit): Unlink response_file if necessary. (handler): Likewise. (do_wait): Likewise. (main): Set at_file_supplied if we expanded argv. (collect_execute): Pass an @-file to subprocesses if we were called with an @-file argument. * configure.ac: Add define for HAVE_GNU_LD. * configure: Regenerate. * config.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124532 138bc75d-0d04-0410-961f-82ee72b054a4 --- include/libiberty.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/libiberty.h') diff --git a/include/libiberty.h b/include/libiberty.h index 7a58b711c37..4e697343fb6 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -86,6 +86,10 @@ extern char **dupargv (char **) ATTRIBUTE_MALLOC; extern void expandargv PARAMS ((int *, char ***)); +/* Write argv to an @-file, inserting necessary quoting. */ + +extern int writeargv PARAMS ((char **, FILE *)); + /* Return the last component of a path name. Note that we can't use a prototype here because the parameter is declared inconsistently across different systems, sometimes as "char *" and sometimes as -- cgit v1.2.1