]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lto-section-in.c (lto_get_section_data): Fix const cast.
authorRichard Biener <rguenther@suse.de>
Tue, 4 Mar 2014 12:52:13 +0000 (12:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 4 Mar 2014 12:52:13 +0000 (12:52 +0000)
2014-03-04  Richard Biener  <rguenther@suse.de>

* lto-section-in.c (lto_get_section_data): Fix const cast.

From-SVN: r208315

gcc/ChangeLog
gcc/lto-section-in.c

index 57bb1d5a711c344aa059f3fa4df833c0df33cc48..97d4866c7a8266e4fe35fdf7b990255afda9f52a 100644 (file)
@@ -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
index 60346dc7a26fe032a63b24f75845c5a896852ca3..9aa7639099cb044e9c62f1259966ad4aba332b3e 100644 (file)
@@ -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;
 }