This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto][patch] Use @args when calling lto-wrapper


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]