aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@codesourcery.com>2014-08-22 16:30:36 +0100
committerMaciej W. Rozycki <macro@codesourcery.com>2014-08-22 16:31:10 +0100
commite56c722b60c67fe915c22970a5e669a723fa1ce9 (patch)
tree1fcab1fdaf8c4d98c7ce88dba006cc1da0fba793 /gas
parenta4a027b7f43b1d9e62a6a540cd7857a334d37b12 (diff)
downloadgdb-e56c722b60c67fe915c22970a5e669a723fa1ce9.zip
gdb-e56c722b60c67fe915c22970a5e669a723fa1ce9.tar.gz
gdb-e56c722b60c67fe915c22970a5e669a723fa1ce9.tar.bz2
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'.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-arm.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 6a0865c..6c4e6b8 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index ae908b1..560b4cf 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -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)