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 X-Patchwork-Id: 343976 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 ozlabs.org (Postfix) with ESMTPS id 1A9DE1400E9 for ; Wed, 30 Apr 2014 05:22:31 +1000 (EST) 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=MOf 0UIt7uNm70PRnVajSuEYzNH+YCsgxI4kiP+6w94SbupKoR66/eW/pos7A6cpS7T7 ZVuAIzHdUUKAm+qvNScbfdl+xhSsAkarEXXuwOjf1jSTz6gSCWreRWjzDD9dXrTZ Ihfozzj2WrOGWkmclvz8vfbyfvUF+U+5Ik1aqc8o= 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=joeHvjf69Yix/xkDmpt0drqyi7iZHBdaMCMaXXQRM 2yoDDQTVR70mL24eQeZra8saK9ZDXiKZehViclwcFY3Bk3O5vOMfKdRGOWBHrdOs 67cgrTOSGBxvInTZPc1Y9qqv4mIY68ANfBxibX4Zad6s/bExeUDigdJLlZAP2Gac TY= 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 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