aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-03-09 15:58:39 +0000
committerNick Clifton <nickc@redhat.com>2017-03-09 16:01:06 +0000
commitf03265d9cda1f5f8df238efa9b7a20330e5711f1 (patch)
tree14d50fa47f0bc4fc09835e1cf59e80b0d16cf436
parentc1fe188b154a4e81372629316be3d3a7820efdac (diff)
downloadgdb-f03265d9cda1f5f8df238efa9b7a20330e5711f1.zip
gdb-f03265d9cda1f5f8df238efa9b7a20330e5711f1.tar.gz
gdb-f03265d9cda1f5f8df238efa9b7a20330e5711f1.tar.bz2
Fix compile time warnings about using possibly uninitialised variables in rs6000-core.c.
* rs6000-core.c (CORE_NEW): Simplify macro when AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/rs6000-core.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9560ad2..0fcaa3b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
+
+ * rs6000-core.c (CORE_NEW): Simplify macro when
+ AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
+
2017-03-07 Alan Modra <amodra@gmail.com>
PR 21224
diff --git a/bfd/rs6000-core.c b/bfd/rs6000-core.c
index 0e66cc3..6951e67 100644
--- a/bfd/rs6000-core.c
+++ b/bfd/rs6000-core.c
@@ -135,9 +135,9 @@ typedef union
#ifdef AIX_CORE_DUMPX_CORE
# ifndef BFD64
-# define CORE_NEW(c) (!(c).old.c_entries)
+# define CORE_NEW(c) (!(c).old.c_entries)
# else
-# define CORE_NEW(c) (!(c).new_dump.c_entries)
+# define CORE_NEW(c) 1
# endif
#else
# define CORE_NEW(c) 0