diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3000eeb80a3..1714cec1844 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-29 Andi Kleen + + * opts.c (print_filtered_help): Print --param min/max/default + with -Q. + 2014-09-29 Kaz Kojima * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv". diff --git a/gcc/opts.c b/gcc/opts.c index 0a49bc0b32f..5cb5a39acc7 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -953,6 +953,7 @@ print_filtered_help (unsigned int include_flags, const char *help; bool found = false; bool displayed = false; + char new_help[128]; if (include_flags == CL_PARAMS) { @@ -971,6 +972,15 @@ print_filtered_help (unsigned int include_flags, /* Get the translation. */ help = _(help); + if (!opts->x_quiet_flag) + { + snprintf (new_help, sizeof (new_help), + _("default %d minimum %d maximum %d"), + compiler_params[i].default_value, + compiler_params[i].min_value, + compiler_params[i].max_value); + help = new_help; + } wrap_help (help, param, strlen (param), columns); } putchar ('\n'); @@ -985,7 +995,6 @@ print_filtered_help (unsigned int include_flags, for (i = 0; i < cl_options_count; i++) { - char new_help[128]; const struct cl_option *option = cl_options + i; unsigned int len; const char *opt;