aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-section-in.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-05-19 17:02:30 +0200
committerMartin Liska <marxin@gcc.gnu.org>2016-05-19 15:02:30 +0000
commitb898d037f36e31b1ec3c33e9b254c86b213138d3 (patch)
tree29895ab029af340313dd92aae40ea7874203c3d5 /gcc/lto-section-in.c
parentf65970cfd092c36035f7a3c683707c2604bcd4a3 (diff)
downloadgcc-b898d037f36e31b1ec3c33e9b254c86b213138d3.zip
gcc-b898d037f36e31b1ec3c33e9b254c86b213138d3.tar.gz
gcc-b898d037f36e31b1ec3c33e9b254c86b213138d3.tar.bz2
LTO: display file name if LTO version check fails
* lto-section-in.c (lto_get_section_data): Call lto_check_version with additional argument. * lto-streamer.c (lto_check_version): Add new argument. * lto-streamer.h (lto_check_version): Likewise. From-SVN: r236464
Diffstat (limited to 'gcc/lto-section-in.c')
-rw-r--r--gcc/lto-section-in.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c
index 93b82be..d8e74d7 100644
--- a/gcc/lto-section-in.c
+++ b/gcc/lto-section-in.c
@@ -168,7 +168,8 @@ lto_get_section_data (struct lto_file_decl_data *file_data,
}
lto_check_version (((const lto_header *)data)->major_version,
- ((const lto_header *)data)->minor_version);
+ ((const lto_header *)data)->minor_version,
+ file_data->file_name);
return data;
}