From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22816 invoked by alias); 16 Nov 2015 14:54:40 -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 22789 invoked by uid 89); 16 Nov 2015 14:54:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mailout05.t-online.de Received: from mailout05.t-online.de (HELO mailout05.t-online.de) (194.25.134.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 16 Nov 2015 14:54:35 +0000 Received: from fwd02.aul.t-online.de (fwd02.aul.t-online.de [172.20.26.148]) by mailout05.t-online.de (Postfix) with SMTP id 02A2536D098; Mon, 16 Nov 2015 15:54:31 +0100 (CET) Received: from [192.168.0.16] (GoLsBQZArhxwPwaFlYIJaDEduRx88lDZhJ7hCjAm7bhqOrBRAZfY8HYFXE+aqsbZfD@[115.165.93.200]) by fwd02.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1ZyLAj-3IujcO0; Mon, 16 Nov 2015 15:54:21 +0100 Message-ID: <1447685657.2230.114.camel@t-online.de> Subject: Re: [PATCH v4] SH FDPIC backend support From: Oleg Endo To: Rich Felker Cc: gcc-patches@gcc.gnu.org Date: Mon, 16 Nov 2015 14:54:00 -0000 In-Reply-To: <20151115203946.GO3818@brightrain.aerifal.cx> References: <1445433471.5521.100.camel@t-online.de> <20151021201510.GV8645@brightrain.aerifal.cx> <20151023063221.GI8645@brightrain.aerifal.cx> <1445783331.8060.3.camel@t-online.de> <20151027024706.GU8645@brightrain.aerifal.cx> <1445954499.8060.22.camel@t-online.de> <20151110200700.GT3818@brightrain.aerifal.cx> <1447252586.3080.9.camel@t-online.de> <20151111145642.GV3818@brightrain.aerifal.cx> <1447564114.2230.101.camel@t-online.de> <20151115203946.GO3818@brightrain.aerifal.cx> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg01961.txt.bz2 On Sun, 2015-11-15 at 15:39 -0500, Rich Felker wrote: > > This is basically the same as above ... it's not possible to > > conditionally construct/modify pattern descriptions in the .md. > > However, it's possible to modify the CALL_INSN_FUNCTION_USAGE > > field of > > call insns -- for some examples see 'grep -r > > CALL_INSN_FUNCTION_USAGE > > gcc/config/*'. Also, it seems the SH backend doesn't make use of > > some > > existing libcall related parameters and target hooks/macros. Maybe > > those could be helpful. > > I'll take a look at this. Let me know if you turn up anything > interesting. I'm currently working on other things, sorry. > > > > Maybe TARGET_USE_PSEUDO_PIC_REG could be useful? > > Yes. Is there any documentation on using it? I came across that but > couldn't figure out how it compares to just doing the pseudo yourself > in the target files. Is non-target-specific code affected by this? Yes, non-target-specific code seems to be affected by this in some way, although I don't know any details. Due to lack of documentation you'll have to grep yourself through it by looking for "USE_PSEUDO_PIC_REG" and "use_pseudo_pic_reg" to find the places where it's used. Cheers, Oleg