summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-05 15:16:49 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-05 15:16:49 +0000
commit9528166a4fcf368c3a7565c18298094756776323 (patch)
tree6645d3f81c4c857f4e7f06cb79441b4e03e94108 /libiberty
parent63628665c2ccd9dc9c182cc22b05d5578aa4a523 (diff)
downloadgcc-9528166a4fcf368c3a7565c18298094756776323.tar.gz
PR middle-end/56526
* simple-object-mach-o.c (simple_object_mach_o_segment): Initialize wrapper_sect_offset to avoid a warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196466 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog6
-rw-r--r--libiberty/simple-object-mach-o.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index b4c61807b5e..e36e69ddf3b 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,9 @@
+2013-03-05 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/56526
+ * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize
+ wrapper_sect_offset to avoid a warning.
+
2013-03-01 Andreas Schwab <schwab@linux-m68k.org>
* obstacks.texi (Obstacks): Trim @node to only contain the
diff --git a/libiberty/simple-object-mach-o.c b/libiberty/simple-object-mach-o.c
index 6fde6722bef..d1b676d777c 100644
--- a/libiberty/simple-object-mach-o.c
+++ b/libiberty/simple-object-mach-o.c
@@ -432,7 +432,7 @@ simple_object_mach_o_segment (simple_object_read *sobj, off_t offset,
size_t index_size;
unsigned int n_wrapped_sects;
size_t wrapper_sect_size;
- off_t wrapper_sect_offset;
+ off_t wrapper_sect_offset = 0;
fetch_32 = (omr->is_big_endian
? simple_object_fetch_big_32