* g++spec.c (lang_specific_driver): Bump num_args by 1.
From-SVN: r149147
This commit is contained in:
parent
882e35a6f2
commit
96f9e8545d
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue