From patchwork Tue Jun 24 14:19:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1687 Received: (qmail 3560 invoked by alias); 24 Jun 2014 14:20:01 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 3543 invoked by uid 89); 24 Jun 2014 14:20:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp03.br.ibm.com Message-ID: <53A98904.2040508@linux.vnet.ibm.com> Date: Tue, 24 Jun 2014 11:19:48 -0300 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: [PATCH] PowerPC: Guard CALL_ELF check for ppc64 only in link.h X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14062414-9564-0000-0000-0000012355D7 This patch fixes undef compiler warnings for _CALL_ELF, since it is defined only for powerpc64. Checked on powerpc32-fpu, ok to apply? --- * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for __ELF_NATIVE_CLASS equal to 64. --- diff --git a/sysdeps/powerpc/bits/link.h b/sysdeps/powerpc/bits/link.h index c8f876b..373b6d5 100644 --- a/sysdeps/powerpc/bits/link.h +++ b/sysdeps/powerpc/bits/link.h @@ -63,7 +63,8 @@ extern unsigned int la_ppc32_gnu_pltexit (Elf32_Sym *__sym, __END_DECLS -#elif _CALL_ELF != 2 +#elif __ELF_NATIVE_CLASS == 64 +# if _CALL_ELF != 2 /* Registers for entry into PLT on PPC64. */ typedef struct La_ppc64_regs @@ -107,7 +108,7 @@ extern unsigned int la_ppc64_gnu_pltexit (Elf64_Sym *__sym, __END_DECLS -#else +# else /* Registers for entry into PLT on PPC64 in the ELFv2 ABI. */ typedef struct La_ppc64v2_regs @@ -151,4 +152,5 @@ extern unsigned int la_ppc64v2_gnu_pltexit (Elf64_Sym *__sym, __END_DECLS +# endif #endif