summaryrefslogtreecommitdiff
path: root/gcc/lto-section-in.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-04 12:52:13 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-04 12:52:13 +0000
commit4692b23a458430a95103dc83a7f6eac37ff3bce9 (patch)
tree8792ae2e9c6e56c46ccf66d63f28303aeffda551 /gcc/lto-section-in.c
parent1942e76fcb0ee7fa0c1645f0a8b489fd4bb8a134 (diff)
downloadgcc-4692b23a458430a95103dc83a7f6eac37ff3bce9.tar.gz
2014-03-04 Richard Biener <rguenther@suse.de>
* 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
Diffstat (limited to 'gcc/lto-section-in.c')
-rw-r--r--gcc/lto-section-in.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c
index 60346dc7a26..9aa7639099c 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;
}