From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105466 invoked by alias); 20 Sep 2017 18:01:39 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 105428 invoked by uid 89); 20 Sep 2017 18:01:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=H*Ad:D*cavium.com X-Spam-User: qpsmtpd, 2 recipients X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Sep 2017 18:01:37 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-01.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1dujJV-0000NN-Pq from joseph_myers@mentor.com ; Wed, 20 Sep 2017 11:01:33 -0700 Received: from digraph.polyomino.org.uk (137.202.0.87) by svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Wed, 20 Sep 2017 19:01:30 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.86_2) (envelope-from ) id 1dujJO-0007Zc-Db; Wed, 20 Sep 2017 18:01:26 +0000 Date: Wed, 20 Sep 2017 18:01:00 -0000 From: Joseph Myers To: Martin Sebor CC: , Gcc Patch List , Jonathan Wakely , libstdc++ Subject: Re: [PATCH] detect incompatible aliases (PR c/81854) In-Reply-To: <5ba5c4ce-b7bd-a7fe-fa66-298bdac6880e@gmail.com> Message-ID: References: <61673e8d-6f5c-9bc0-dcf8-75eee71f98de@gmail.com> <1505921857.2286.101.camel@cavium.com> <3d1bd511-dfe3-d965-248e-a2ec108187d5@gmail.com> <1505925525.2286.106.camel@cavium.com> <5ba5c4ce-b7bd-a7fe-fa66-298bdac6880e@gmail.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-SW-Source: 2017-09/txt/msg01394.txt.bz2 On Wed, 20 Sep 2017, Martin Sebor wrote: > I'm not intimately familiar with the Glibc ifunc infrastructure > to suggest a good solution here, so assuming this works my only > idea is to suppress the warning for these builds. > > Joseph, do you have a better suggestion? Is the warning because of a declaration of memmove as aliasing __libc_memmove being compared with the type of the __libc_memmove_ifunc declaration (asm name __libc_memmove) rather than the __libc_memmove declaration? If so, maybe in the non-HAVE_GCC_IFUNC case the alias should be declared with a different type? Or should be defined inside asm in this case (presumably with new ifunc-related macros)? (It may nevertheless be a good idea to set default_gnu_indirect_function=yes for AArch64 configurations in GCC that use glibc.) -- Joseph S. Myers joseph@codesourcery.com