From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10315 invoked by alias); 30 Dec 2009 22:12:29 -0000 Received: (qmail 10305 invoked by uid 22791); 30 Dec 2009 22:12:29 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f203.google.com (HELO mail-pz0-f203.google.com) (209.85.222.203) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Dec 2009 22:12:24 +0000 Received: by pzk41 with SMTP id 41so4413228pzk.0 for ; Wed, 30 Dec 2009 14:12:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.141.213.29 with SMTP id p29mr13391288rvq.103.1262211141814; Wed, 30 Dec 2009 14:12:21 -0800 (PST) In-Reply-To: <20091223193244.hqaet9zf488gw844-nzlynne@webmail.spamcop.net> References: <4AE6E471.4020200@starynkevitch.net> <4AE7164D.9010200@starynkevitch.net> <84fc9c000910270855w736df367qe511d8db280aaeb4@mail.gmail.com> <2dc303d60910271056h17038110ib63c53cfa374f5c7@mail.gmail.com> <20091102074959.p8410ulv28sg0w44-nzlynne@webmail.spamcop.net> <20091105082557.75c2estyoog8ss0c-nzlynne@webmail.spamcop.net> <-2186575642631489790@unknownmsgid> <55692dc10911050634y54a5fea7jd2ba773086cda60b@mail.gmail.com> <20091223101256.z6a8ug32o8k84o4o-nzlynne@webmail.spamcop.net> <20091223193244.hqaet9zf488gw844-nzlynne@webmail.spamcop.net> Date: Wed, 30 Dec 2009 22:12:00 -0000 Message-ID: <84fc9c000912301412r7fd02bc3v2e0703937131c945@mail.gmail.com> Subject: Re: target hooks / plugins From: Richard Guenther To: Joern Rennecke Cc: GCC Mailing List , Grigori Fursin , ctuning-discussions@googlegroups.com, Yuanjie Huang , Liang Peng , Zbigniew Chamski , Yuri Kashnikoff , Diego Novillo Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg00400.txt.bz2 On Thu, Dec 24, 2009 at 1:32 AM, Joern Rennecke wrote: > Quoting Joern Rennecke : >> >> Right now, to make a new target hook, you have to add a new field in >> target.h, define a new default in target-def.h, place the new macro >> in exactly the right position there of the right initializer macro, >> describe the new hook in tm.texi, and if you need a new function with >> a bunch of parameters returning a constant, you have to add this to >> hooks.c . >> >> I would like to be able to do all this by adding a single entry in a >> new definition file; and the information should also be usable by >> plugin sources so that they can automatically make wrappers for all >> function-type hooks. > > I've attached what I have so far. > There is an issue that the struct gcc_target member names don't always agree > with the TARGET_* macro names. > > Should I rather change one or the other to make them agree, or add an extra > parameter in the definition file macros to specify these names > independently? I didn't look at the patch yet but I'd simply change one or the other to make the names consistent. Richard. > >