Fix non-ELF powerpc build breakage

Alan Modra amodra@gmail.com
Fri Apr 15 14:14:00 GMT 2016
Silence and unused variable warning.  Committed.

	* config/tc-ppc.c (toc_reloc_types): Wrap in #ifdef OBJ_ELF

diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 8bfdfdc..6346570 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -206,11 +206,13 @@ ppc_cpu_t sticky = 0;
 /* Value for ELF e_flags EF_PPC64_ABI.  */
 unsigned int ppc_abiversion = 0;
 
+#ifdef OBJ_ELF
 /* Flags set on encountering toc relocs.  */
 static enum {
   has_large_toc_reloc = 1,
   has_small_toc_reloc = 2
 } toc_reloc_types;
+#endif
 
 /* Warn on emitting data to code sections.  */
 int warn_476;

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list