This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix compile time warning about duplicate case values for powerpc-aix target.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=adce5b398df497da54e67772233be1b4849666ed

commit adce5b398df497da54e67772233be1b4849666ed
Author: Nick Clifton <nickc@redhat.com>
Date:   Mon Jul 10 13:18:05 2017 +0100

    Fix compile time warning about duplicate case values for powerpc-aix target.
    
    	* coffcode.h (coff_slurp_symbol_table): Do not include an entry
    	for C_AIX_WEAKEXT if it has the same value as C_WEAKEXT.

Diff:
---
 bfd/ChangeLog  | 5 +++++
 bfd/coffcode.h | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8e91b1d..111afcb 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2017-07-10  Nick Clifton  <nickc@redhat.com>
+
+	* coffcode.h (coff_slurp_symbol_table): Do not include an entry
+	for C_AIX_WEAKEXT if it has the same value as C_WEAKEXT.
+
 2017-07-07  John Baldwin  <jhb@FreeBSD.org>
 
 	* elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO.
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index ef82772..4aa9741 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4811,8 +4811,10 @@ coff_slurp_symbol_table (bfd * abfd)
 #endif
 #ifdef RS6000COFF_C
 	    case C_HIDEXT:
+#if ! defined _AIX52 && ! defined AIX_WEAK_SUPPORT
 	    case C_AIX_WEAKEXT:
 #endif
+#endif
 #ifdef C_SYSTEM
 	    case C_SYSTEM:	/* System Wide variable.  */
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]