ARM/gas: Fix a build failure with GCC 4.3.3
authorMaciej W. Rozycki <macro@codesourcery.com>
Fri, 22 Aug 2014 15:30:36 +0000 (16:30 +0100)
committerMaciej W. Rozycki <macro@codesourcery.com>
Fri, 22 Aug 2014 15:31:10 +0000 (16:31 +0100)
cc1: warnings being treated as errors
.../gas/config/tc-arm.c: In function 'add_to_lit_pool':
.../gas/config/tc-arm.c:3193: error: 'imm1' may be used uninitialized in this function

* config/tc-arm.c (add_to_lit_pool): Preinitialize `imm1'.

gas/ChangeLog
gas/config/tc-arm.c

index 6a0865ca416da0b75baf3f24cc97d91184fc552b..6c4e6b8e1ddb68a4693c77ce1d68187c47281bb6 100644 (file)
@@ -1,3 +1,7 @@
+2014-08-22  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * config/tc-arm.c (add_to_lit_pool): Preinitialize `imm1'.
+
 2014-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * dw2gencfi.c (make_debug_seg): Replace leading spaces with tabs.
index ae908b17616123701d6cb7e30f4d07210a3f3fc9..560b4cff5d32d56f7a0bf1051c4935922f8ae04c 100644 (file)
@@ -3192,7 +3192,7 @@ add_to_lit_pool (unsigned int nbytes)
   literal_pool * pool;
   unsigned int entry, pool_size = 0;
   bfd_boolean padding_slot_p = FALSE;
-  unsigned imm1;
+  unsigned imm1 = 0;
   unsigned imm2 = 0;
 
   if (nbytes == 8)
This page took 0.036342 seconds and 4 git commands to generate.