gcc.c (execute): Fix -Wc++-compat warning.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 7 Jul 2008 00:48:55 +0000 (00:48 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 7 Jul 2008 00:48:55 +0000 (00:48 +0000)
* gcc.c (execute): Fix -Wc++-compat warning.

From-SVN: r137548

gcc/ChangeLog
gcc/gcc.c

index ab0803988b9082863450b5b04a2b7801e76f353c..2f51dfc6459606c1ee5d5c597e6cc16a7c290237 100644 (file)
@@ -1,3 +1,7 @@
+2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * gcc.c (execute): Fix -Wc++-compat warning.
+
 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/36720
index 3da40a8c2a7a1123f250c3bcd38edb674eb40086..00533247163d5a36ecb14ea6b58a936840b29a99 100644 (file)
--- 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";