ARM/gas: Fix a build failure with GCC 4.3.3

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'.
This commit is contained in:
Maciej W. Rozycki 2014-08-22 16:30:36 +01:00
parent a4a027b7f4
commit e56c722b60
2 changed files with 5 additions and 1 deletions

View 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.

View 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)