lto-streamer-out.c (write_global_references): Adjust integer type.
authorAndris Pavenis <andris.pavenis@iki.fi>
Mon, 16 Nov 2015 21:13:37 +0000 (23:13 +0200)
committerJeff Law <law@gcc.gnu.org>
Mon, 16 Nov 2015 21:13:37 +0000 (14:13 -0700)
* lto-streamer-out.c (write_global_references): Adjust integer type.
(lto_output_decl_state_refs): Likewise.

From-SVN: r230436

gcc/ChangeLog
gcc/lto-streamer-out.c

index fa6dcd51d1596a5e60107a350432c2bcdb88fe1a..5d6213f4462442b7ffa10067780edaacc6c87859 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
+
+       * lto-streamer-out.c (write_global_references): Adjust integer type.
+       (lto_output_decl_state_refs): Likewise.
+
 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * config/arm/arm-cores.def (cortex-a35): New.
index 3e087d1e124a34e1bd46f5c0d861d17de328f3e2..0d610f166bc006134c4788bfa943f6482f189eeb 100644 (file)
@@ -2387,7 +2387,7 @@ write_global_references (struct output_block *ob,
 
   for (index = 0; index < size; index++)
     {
-      uint32_t slot_num;
+      unsigned slot_num;
 
       t = lto_tree_ref_encoder_get_tree (encoder, index);
       streamer_tree_cache_lookup (ob->writer_cache, t, &slot_num);
@@ -2422,7 +2422,7 @@ lto_output_decl_state_refs (struct output_block *ob,
                            struct lto_out_decl_state *state)
 {
   unsigned i;
-  uint32_t ref;
+  unsigned ref;
   tree decl;
 
   /* Write reference to FUNCTION_DECL.  If there is not function,