aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-09-05 20:14:25 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-09-05 20:14:25 +0200
commitb3c3ce0ac66a845e2b56bfe1944c87c962b565be (patch)
tree5c0a1ead954e1473a9eec8db98f5fa5b20fb766d /gcc
parent4b13952a33fce29e1c81de32eb47fe245308e883 (diff)
downloadgcc-b3c3ce0ac66a845e2b56bfe1944c87c962b565be.zip
gcc-b3c3ce0ac66a845e2b56bfe1944c87c962b565be.tar.gz
gcc-b3c3ce0ac66a845e2b56bfe1944c87c962b565be.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/toplev.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 897bfbb..fcca2cf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 4da5627..66099ec 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 ();