OSDN Git Service

* g++spec.c (lang_specific_driver): Bump num_args by 1.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jul 2009 18:46:09 +0000 (18:46 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jul 2009 18:46:09 +0000 (18:46 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149147 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/g++spec.c

index 4e85a95..7aa9024 100644 (file)
@@ -1,3 +1,7 @@
+2009-07-01  Ian Lance Taylor  <iant@google.com>
+
+       * g++spec.c (lang_specific_driver): Bump num_args by 1.
+
 2009-06-30  Jason Merrill  <jason@redhat.com>
 
        PR c++/40595
index ab50f57..7ad268f 100644 (file)
@@ -273,7 +273,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
 
   /* Make sure to have room for the trailing NULL argument.
      Add one for shared_libgcc or extra static library.  */
-  num_args = argc + added + need_math + (library > 0) * 4 + 1;
+  num_args = argc + added + need_math + (library > 0) * 4 + 2;
   arglist = XNEWVEC (const char *, num_args);
 
   i = 0;