From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19235 invoked by alias); 20 Jan 2020 14:42:06 -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 18735 invoked by uid 89); 20 Jan 2020 14:42:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=H*i:x5N, H*f:sk:90-dEjB, H*i:EzTWsHm7, H*MI:sk:90-dEjB X-HELO: smtp.ispras.ru Received: from winnie.ispras.ru (HELO smtp.ispras.ru) (83.149.199.91) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Jan 2020 14:41:56 +0000 Received: from [10.10.3.121] (monopod.intra.ispras.ru [10.10.3.121]) by smtp.ispras.ru (Postfix) with ESMTP id 26A78203BF; Mon, 20 Jan 2020 17:41:54 +0300 (MSK) Date: Mon, 20 Jan 2020 14:54:00 -0000 From: Alexander Monakov To: "H.J. Lu" cc: Richard Biener , =?ISO-8859-15?Q?Martin_Li=A8ka?= , Uros Bizjak , GCC Patches Subject: Re: [PATCH] Make target_clones resolver fn static. In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20.13 (LNX 116 2015-12-14) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2020-01/txt/msg01234.txt.bz2 On Mon, 20 Jan 2020, H.J. Lu wrote: > > Bare IFUNC's don't seem to have this restriction. Why do we want to > > constrain target clones this way? > > > > foo's resolver acts as foo. It should have the same visibility as foo. What do you mean by that? From the implementation standpoint, there's two symbols of different type with the same value. There's no problem allowing one of them have local binding and the other have global binding. Is there something special about target clones that doesn't come into play with ifuncs? Alexander