Commit bc947511 by Jakub Jelinek Committed by Jakub Jelinek

re PR fortran/49623 (Segfault of "gfortran -L" if no argument follows the "-L")

	PR fortran/49623
	* gfortranspec.c (lang_specific_driver): Ignore options with
	CL_ERR_MISSING_ARG errors.

From-SVN: r175830
parent af421d9c
2011-07-04 Jakub Jelinek <jakub@redhat.com>
PR fortran/49623
* gfortranspec.c (lang_specific_driver): Ignore options with
CL_ERR_MISSING_ARG errors.
2011-07-02 Janus Weil <janus@gcc.gnu.org>
PR fortran/49562
......
......@@ -255,6 +255,9 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options,
for (i = 1; i < argc; ++i)
{
if (decoded_options[i].errors & CL_ERR_MISSING_ARG)
continue;
switch (decoded_options[i].opt_index)
{
case OPT_SPECIAL_input_file:
......
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