From 711428147bde634fd58bd7c2da96d919189d81da Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 26 Sep 2008 18:45:44 +0200 Subject: [PATCH] re PR middle-end/37576 (-v --help ICEs) PR middle-end/37576 * opts.c (common_handle_option): Don't call print_specific_help with CL_SAVE as first argument. From-SVN: r140709 --- gcc/ChangeLog | 6 ++++++ gcc/opts.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7cc71ff413d..e3e9f0006ab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-09-26 Jakub Jelinek + + PR middle-end/37576 + * opts.c (common_handle_option): Don't call print_specific_help with + CL_SAVE as first argument. + 2008-09-26 Peter O'Gorman Steve Ellcey diff --git a/gcc/opts.c b/gcc/opts.c index 6e210ea7ceb..bac50b0925f 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -1459,7 +1459,8 @@ common_handle_option (size_t scode, const char *arg, int value, print_specific_help (0, undoc_mask, all_langs_mask); /* Then display any remaining, non-language options. */ for (i = CL_MIN_OPTION_CLASS; i <= CL_MAX_OPTION_CLASS; i <<= 1) - print_specific_help (i, undoc_mask, 0); + if (i != CL_SAVE) + print_specific_help (i, undoc_mask, 0); exit_after_options = true; break; }