Commit b3c3ce0a by Jakub Jelinek Committed by Jakub Jelinek

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
parent 4b13952a
2016-09-05 Jakub Jelinek <jakub@redhat.com>
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 <ubizjak@gmail.com>
PR rtl-optimization/77452
......
......@@ -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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment