From 63ab5b8c18e2a51ce8e2089853ca0df900dbf008 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 7 Jul 2008 00:48:55 +0000 Subject: [PATCH] gcc.c (execute): Fix -Wc++-compat warning. * gcc.c (execute): Fix -Wc++-compat warning. From-SVN: r137548 --- gcc/ChangeLog | 4 ++++ gcc/gcc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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"; -- 2.30.2