Commit 96f9e854 by Ian Lance Taylor Committed by Ian Lance Taylor

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

From-SVN: r149147
parent 882e35a6
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment