This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Use @args when calling xgcc from lto-wrapper
- From: Diego Novillo <dnovillo at google dot com>
- To: Rafael Espindola <espindola at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 29 Jan 2009 11:17:55 -0500
- Subject: Re: [lto][patch] Use @args when calling xgcc from lto-wrapper
- References: <38a0d8450901290812q19fc8926s9cf715e98b42cb32@mail.gmail.com>
On Thu, Jan 29, 2009 at 11:12, Rafael Espindola <espindola@google.com> wrote:
> Since lto-wrapper might have a long command line, it has to use @args
> when passing the arguments to xgcc.
>
> I also pigbacked a small cleanup t ocollect_execute.
>
> 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
>
> * lto-wrapper.c (collect_execute): Remove unused vars.
> (fork_execute): Write argv to a file and pass that to the command.
OK with
> + char *args_name = make_temp_file(".args");
> + char *at_args = concat("@", args_name, NULL);
Space before '('.
> + for (i = 1; argv[i]; i++)
> + fprintf(args, "%s\n", argv[i]);
Space before '('.
Diego.