Fix compile time warnings about using possibly uninitialised variables in rs6000...
authorSam Thursfield <sam.thursfield@codethink.co.uk>
Thu, 9 Mar 2017 15:58:39 +0000 (15:58 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 9 Mar 2017 16:01:06 +0000 (16:01 +0000)
* rs6000-core.c (CORE_NEW): Simplify macro when
AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.

bfd/ChangeLog
bfd/rs6000-core.c

index 9560ad2e7a766abcf333202be4d8fa1c763dffa9..0fcaa3b83d65ce16d122ab3dc87af8215b5a8dd1 100644 (file)
@@ -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
index 0e66cc349b484c610184365c3283df5172de542a..6951e671e5a7b1b8698d9d5f14e20aed68267ee8 100644 (file)
@@ -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