From: Kaveh R. Ghazi Date: Mon, 7 Jul 2008 00:48:55 +0000 (+0000) Subject: gcc.c (execute): Fix -Wc++-compat warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63ab5b8c18e2a51ce8e2089853ca0df900dbf008;p=gcc.git gcc.c (execute): Fix -Wc++-compat warning. * gcc.c (execute): Fix -Wc++-compat warning. From-SVN: r137548 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ab0803988b9..2f51dfc6459 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-07-06 Kaveh R. Ghazi + + * gcc.c (execute): Fix -Wc++-compat warning. + 2008-07-06 H.J. Lu PR target/36720 diff --git a/gcc/gcc.c b/gcc/gcc.c index 3da40a8c2a7..00533247163 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -2973,7 +2973,7 @@ execute (void) for (argc = 0; commands[i].argv[argc] != NULL; argc++) ; - argv = alloca ((argc + 3) * sizeof (char *)); + argv = XALLOCAVEC (const char *, argc + 3); argv[0] = VALGRIND_PATH; argv[1] = "-q";