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 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 08:39:05 -0500
- Subject: Re: [lto][patch] Use @args when calling lto-wrapper
- References: <38a0d8450901290457y547be78cgb108d26f8a5f1aa1@mail.gmail.com>
On Thu, Jan 29, 2009 at 07:57, Rafael Espindola <espindola@google.com> wrote:
> @@ -362,15 +362,40 @@ exec_lto_wrapper (char *const argv[])
> int pipe_read;
> int pipe_write;
> int t;
> + const int name_size = 100;
> + char *at_args;
> + char *args_name;
> + FILE *args;
> + int i;
> +
> + /* Write argv to a file to avoid a command line that is too long. */
> + at_args = malloc (name_size);
name_size + 1
> +
> + char *new_argv[] = {argv[0], at_args, NULL};
Mixed declarations with code.
OK otherwise.
Diego.