Skip to content

Commit

Permalink
2014-03-04 Richard Biener <rguenther@suse.de>
Browse files Browse the repository at this point in the history
	* lto-section-in.c (lto_get_section_data): Fix const cast.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208315 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
rguenth committed Mar 4, 2014
1 parent 1942e76 commit 4692b23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions gcc/lto-section-in.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4692b23

Please sign in to comment.