Blame SOURCES/glibc-rh1505492-undef-34.patch

c6d234
commit 3f17b03b0947fbe2482e2776f654056d1d5ba093
c6d234
Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
c6d234
Date:   Tue Jun 24 06:41:46 2014 -0500
c6d234
c6d234
    PowerPC: Guard CALL_ELF check for ppc64 only in link.h
c6d234
    
c6d234
    This patch fixes powerpc32 undef compiler warnings for _CALL_ELF,
c6d234
    since it is defined only for powerpc64.
c6d234
c6d234
diff --git a/sysdeps/powerpc/bits/link.h b/sysdeps/powerpc/bits/link.h
c6d234
index 6c7867e04353a39e..201d3427dac8aece 100644
c6d234
--- a/sysdeps/powerpc/bits/link.h
c6d234
+++ b/sysdeps/powerpc/bits/link.h
c6d234
@@ -63,7 +63,8 @@ extern unsigned int la_ppc32_gnu_pltexit (Elf32_Sym *__sym,
c6d234
 
c6d234
 __END_DECLS
c6d234
 
c6d234
-#elif _CALL_ELF != 2
c6d234
+#elif __ELF_NATIVE_CLASS == 64
c6d234
+# if _CALL_ELF != 2
c6d234
 
c6d234
 /* Registers for entry into PLT on PPC64.  */
c6d234
 typedef struct La_ppc64_regs
c6d234
@@ -107,7 +108,7 @@ extern unsigned int la_ppc64_gnu_pltexit (Elf64_Sym *__sym,
c6d234
 
c6d234
 __END_DECLS
c6d234
 
c6d234
-#else
c6d234
+# else
c6d234
 
c6d234
 /* Registers for entry into PLT on PPC64 in the ELFv2 ABI.  */
c6d234
 typedef struct La_ppc64v2_regs
c6d234
@@ -151,4 +152,5 @@ extern unsigned int la_ppc64v2_gnu_pltexit (Elf64_Sym *__sym,
c6d234
 
c6d234
 __END_DECLS
c6d234
 
c6d234
+# endif
c6d234
 #endif