From: Jakub Jelinek Date: Mon, 5 Sep 2016 18:14:25 +0000 (+0200) Subject: re PR middle-end/77475 (unnecessary or misleading context in reporting command line... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3c3ce0ac66a845e2b56bfe1944c87c962b565be;p=gcc.git re PR middle-end/77475 (unnecessary or misleading context in reporting command line problems) PR middle-end/77475 * toplev.c (process_options): Temporarily set input_location to UNKNOWN_LOCATION around targetm.target_option.override () call. From-SVN: r239994 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 897bfbbea8a..fcca2cf6852 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-09-05 Jakub Jelinek + + PR middle-end/77475 + * toplev.c (process_options): Temporarily set input_location + to UNKNOWN_LOCATION around targetm.target_option.override () call. + 2016-09-05 Uros Bizjak PR rtl-optimization/77452 diff --git a/gcc/toplev.c b/gcc/toplev.c index 4da5627b350..66099ec7d23 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1220,7 +1220,10 @@ process_options (void) no_backend = lang_hooks.post_options (&main_input_filename); /* Some machines may reject certain combinations of options. */ + location_t saved_location = input_location; + input_location = UNKNOWN_LOCATION; targetm.target_option.override (); + input_location = saved_location; if (flag_diagnostics_generate_patch) global_dc->edit_context_ptr = new edit_context ();