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]
Other format: [Raw text]

[PATCH] Fix ICE on -fhelp=separate and -fhelp=joined (PR middle-end/37805)


Hi!

print_specific_help is only able to print CL_* option classes
(CL_MIN_OPTION_CLASS through CL_MAX_OPTION_CLASS) and CL_UNDOCUMENTED
as a special case, but no other bit flags.  Most of them don't
have a record in -fhelp= handling, but joined and separate
mistakenly have, but -fhelp=joined or -fhelp=separate immediately
ICEs.  The following patch fixes it.  Ok for trunk?

2008-10-14  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/37805
	* opts.c (common_handle_option): Don't ICE on -fhelp=joined
	and -fhelp=separate.

--- gcc/opts.c.jj	2008-10-08 11:50:40.000000000 +0200
+++ gcc/opts.c	2008-10-14 11:03:36.000000000 +0200
@@ -1505,8 +1505,6 @@ common_handle_option (size_t scode, cons
 	      { "warnings", CL_WARNING },
 	      { "undocumented", CL_UNDOCUMENTED },
 	      { "params", CL_PARAMS },
-	      { "joined", CL_JOINED },
-	      { "separate", CL_SEPARATE },
 	      { "common", CL_COMMON },
 	      { NULL, 0 }
 	    };

	Jakub


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