diff options
author | Richard Biener <rguenther@suse.de> | 2014-03-04 12:52:13 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-03-04 12:52:13 +0000 |
commit | 3c24e842c179b16c7d4b397d2d09c48f23f4a845 (patch) | |
tree | 8792ae2e9c6e56c46ccf66d63f28303aeffda551 | |
parent | 3740bda6657ed84863bc2d69889b39bd859454d7 (diff) | |
download | gcc-3c24e842c179b16c7d4b397d2d09c48f23f4a845.zip gcc-3c24e842c179b16c7d4b397d2d09c48f23f4a845.tar.gz gcc-3c24e842c179b16c7d4b397d2d09c48f23f4a845.tar.bz2 |
lto-section-in.c (lto_get_section_data): Fix const cast.
2014-03-04 Richard Biener <rguenther@suse.de>
* lto-section-in.c (lto_get_section_data): Fix const cast.
From-SVN: r208315
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/lto-section-in.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 57bb1d5..97d4866 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-03-04 Richard Biener <rguenther@suse.de> + + * lto-section-in.c (lto_get_section_data): Fix const cast. + 2014-03-04 Paulo Matos <paulo@matos-sorge.com> * tree-streamer.c (record_common_node): Assert we don't record diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c index 60346dc..9aa7639 100644 --- a/gcc/lto-section-in.c +++ b/gcc/lto-section-in.c @@ -174,8 +174,8 @@ lto_get_section_data (struct lto_file_decl_data *file_data, data = buffer.data + header_length; } - lto_check_version (((lto_header *)data)->major_version, - ((lto_header *)data)->minor_version); + lto_check_version (((const lto_header *)data)->major_version, + ((const lto_header *)data)->minor_version); return data; } |