* g++spec.c (lang_specific_driver): Bump num_args by 1.

From-SVN: r149147
This commit is contained in:
Ian Lance Taylor 2009-07-01 18:46:09 +00:00 committed by Ian Lance Taylor
parent 882e35a6f2
commit 96f9e8545d
2 changed files with 5 additions and 1 deletions

View 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

View 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;