This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ PATCH: minor tweak to cxx_decode_option
- To: gcc-patches at gcc dot gnu dot org
- Subject: C++ PATCH: minor tweak to cxx_decode_option
- From: Jason Merrill <jason_merrill at redhat dot com>
- Date: 02 Oct 2001 16:41:36 +0100
2001-10-02 Jason Merrill <jason_merrill@redhat.com>
* decl2.c (cxx_decode_option): Add 'else'.
*** decl2.c.~1~ Mon Oct 1 16:06:36 2001
--- decl2.c Sun Sep 23 16:38:54 2001
*************** cxx_decode_option (argc, argv)
*** 590,603 ****
but breaks the VAX pcc. */
found = 1;
}
! if (p[0] == 'n' && p[1] == 'o' && p[2] == '-'
! && ! strcmp (p+3, lang_f_options[j].string))
{
*lang_f_options[j].variable = ! lang_f_options[j].on_value;
found = 1;
}
}
!
return found;
}
}
--- 590,603 ----
but breaks the VAX pcc. */
found = 1;
}
! else if (p[0] == 'n' && p[1] == 'o' && p[2] == '-'
! && ! strcmp (p+3, lang_f_options[j].string))
{
*lang_f_options[j].variable = ! lang_f_options[j].on_value;
found = 1;
}
}
!
return found;
}
}