2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
* toplev.c (general_init): Set default for
fdiagnostics-show-option.
* opts.c (common_handle_option): Allow disabling it.
* common.opt (fdiagnostics-show-option): Add Var. Enabled by
default.
testsuite/
* gcc.dg/Wconversion-integer.c: Update.
From-SVN: r158676
+2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ * toplev.c (general_init): Set default for
+ fdiagnostics-show-option.
+ * opts.c (common_handle_option): Allow disabling it.
+ * common.opt (fdiagnostics-show-option): Add Var. Enabled by
+ default.
+
2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
* expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
* expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
-fdiagnostics-show-location=[once|every-line] How often to emit source location at the beginning of line-wrapped diagnostics
fdiagnostics-show-option
-fdiagnostics-show-location=[once|every-line] How often to emit source location at the beginning of line-wrapped diagnostics
fdiagnostics-show-option
+Common Var(flag_diagnostics_show_option) Init(1)
Amend appropriate diagnostic messages with the command line option that controls them
fdump-
Amend appropriate diagnostic messages with the command line option that controls them
fdump-
break;
case OPT_fdiagnostics_show_option:
break;
case OPT_fdiagnostics_show_option:
- global_dc->show_option_requested = true;
+ global_dc->show_option_requested = value;
+2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ * gcc.dg/Wconversion-integer.c: Update.
+
2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/unchecked_convert5.adb: New test.
2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/unchecked_convert5.adb: New test.
- uc = x ? 1U : -1; /* { dg-warning "conversion" } */
+ uc = x ? 1U : -1; /* { dg-warning " conversion" } */
/* { dg-warning "negative integer implicitly converted to unsigned type" "" { target *-*-* } 43 } */
/* { dg-warning "negative integer implicitly converted to unsigned type" "" { target *-*-* } 43 } */
- uc = x ? SCHAR_MIN : 1U; /* { dg-warning "conversion" } */
+ uc = x ? SCHAR_MIN : 1U; /* { dg-warning " conversion" } */
/* { dg-warning "negative integer implicitly converted to unsigned type" "" { target *-*-* } 45 } */
uc = x ? 1 : -1; /* { dg-warning "negative integer implicitly converted to unsigned type" } */
uc = x ? SCHAR_MIN : 1; /* { dg-warning "negative integer implicitly converted to unsigned type" } */
/* { dg-warning "negative integer implicitly converted to unsigned type" "" { target *-*-* } 45 } */
uc = x ? 1 : -1; /* { dg-warning "negative integer implicitly converted to unsigned type" } */
uc = x ? SCHAR_MIN : 1; /* { dg-warning "negative integer implicitly converted to unsigned type" } */
/* Set a default printer. Language specific initializations will
override it later. */
pp_format_decoder (global_dc->printer) = &default_tree_printer;
/* Set a default printer. Language specific initializations will
override it later. */
pp_format_decoder (global_dc->printer) = &default_tree_printer;
+ global_dc->show_option_requested = flag_diagnostics_show_option;
/* Trap fatal signals, e.g. SIGSEGV, and convert them to ICE messages. */
#ifdef SIGSEGV
/* Trap fatal signals, e.g. SIGSEGV, and convert them to ICE messages. */
#ifdef SIGSEGV