From patchwork Tue Apr 29 19:22:13 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: 749 X-Patchwork-Delegate: carlos@redhat.com Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 0C36C360078 for ; Tue, 29 Apr 2014 12:22:29 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14307373) id A6C5A4FB0EA3; Tue, 29 Apr 2014 12:22:29 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx22.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx22.g.dreamhost.com (Postfix) with ESMTPS id 560B74F9038D for ; Tue, 29 Apr 2014 12:22:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=VmC 7r4FhVlXhvMFhxz1ZanijWr1tamB321RBbGBJ0PsIX2xu0+Un+SWrVPX2eMw70K8 QVfxo42w0orGOBCmjzFKQ3o7i1tYuoK+fw2K790PHx0/4gfXXWJ6MsdfL6N1V0Qa tGCKe+uCg2dRFAcRO8zkqXIJkffjM8lpWjc3qCUo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=NiRQnGDdL uAfxAsaaCB4sAmbMyc=; b=C9q6b7IsE7vwdRCg9uGz6vMdRNluxIULJRouIkV28 uHO/szFVd32eSwmA5znD9csPd51qVB9I7g/B7rIayFKaEaOdhp6W+GhVVgZMXzE7 dXP8avc2REqqch87KqbbtneKa+HK9QBFo2wim6OQnY+mYBUzP0bJjE2eGcKMKenT wU= Received: (qmail 8371 invoked by alias); 29 Apr 2014 19:22:27 -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 8358 invoked by uid 89); 29 Apr 2014 19:22:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp04.br.ibm.com Message-ID: <535FFBE5.1080805@linux.vnet.ibm.com> Date: Tue, 29 Apr 2014 16:22:13 -0300 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: [PATCH] More fixes for unsafe compiler optimization X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14042919-1820-0000-0000-00000073E81D X-DH-Original-To: glibc@patchwork.siddhesh.in GCC 4.9 -ftree-loop-distribute-patterns now may transform loops in memcpy. Add the alias to internal GLIBC symbol to avoid PLT creation. This fixes the check-localplt issues when building GLIBC with GCC 4.9 on powerpc64. Ok to apply? --- * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias. --- diff --git a/sysdeps/generic/symbol-hacks.h b/sysdeps/generic/symbol-hacks.h index 9eaf014..6bec24b 100644 --- a/sysdeps/generic/symbol-hacks.h +++ b/sysdeps/generic/symbol-hacks.h @@ -3,4 +3,5 @@ #if !defined __ASSEMBLER__ && !defined NOT_IN_libc && defined SHARED asm ("memmove = __GI_memmove"); asm ("memset = __GI_memset"); +asm ("memcpy = __GI_memcpy"); #endif