This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

C++ PATCH: minor tweak to cxx_decode_option


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]