public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Guenther <richard.guenther@gmail.com>
To: Joern Rennecke <amylaar@spamcop.net>
Cc: GCC Mailing List <gcc@gcc.gnu.org>,
	Grigori Fursin <grigori.fursin@inria.fr>,
	 	ctuning-discussions@googlegroups.com,
	Yuanjie Huang <huangyuanjie@ict.ac.cn>,
	 	Liang Peng <pengliang@ict.ac.cn>,
	Zbigniew Chamski <zbigniew.chamski@gmail.com>,
	 	Yuri Kashnikoff <yuri.kashnikoff@gmail.com>,
	Diego Novillo <dnovillo@google.com>
Subject: Re: target hooks / plugins
Date: Wed, 30 Dec 2009 22:12:00 -0000	[thread overview]
Message-ID: <84fc9c000912301412r7fd02bc3v2e0703937131c945@mail.gmail.com> (raw)
In-Reply-To: <20091223193244.hqaet9zf488gw844-nzlynne@webmail.spamcop.net>

On Thu, Dec 24, 2009 at 1:32 AM, Joern Rennecke <amylaar@spamcop.net> wrote:
> Quoting Joern Rennecke <amylaar@spamcop.net>:
>>
>> 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.

>
>

  parent reply	other threads:[~2009-12-30 22:12 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-27 12:22 plugin hooks Basile STARYNKEVITCH
2009-10-27 13:29 ` Richard Guenther
2009-10-27 14:19   ` Basile STARYNKEVITCH
2009-10-27 14:57     ` Ian Lance Taylor
2009-10-27 15:06       ` Basile STARYNKEVITCH
2009-10-27 15:20         ` Ian Lance Taylor
2009-10-27 15:29           ` Basile STARYNKEVITCH
2009-10-27 15:50             ` Richard Guenther
2009-10-27 15:51               ` Basile STARYNKEVITCH
2009-10-27 16:25                 ` Richard Guenther
     [not found]                   ` <2dc303d60910271056h17038110ib63c53cfa374f5c7@mail.gmail.com>
     [not found]                     ` <002c01ca5746$9dd43da0$d97cb8e0$@fursin@inria.fr>
2009-11-02 12:47                       ` Joern Rennecke
2009-11-02 20:20                         ` Grigori Fursin
2009-11-05 11:17                         ` [plugins-ici-cloning-instrumentation] new GCC plugin developements Grigori Fursin
2009-11-05 13:26                           ` Joern Rennecke
2009-11-05 13:54                             ` Grigori Fursin
2009-11-05 23:34                               ` Ian Lance Taylor
2009-11-06 14:09                                 ` Grigori Fursin
2009-11-06 14:54                                   ` Joern Rennecke
2009-11-06 15:09                                     ` Grigori Fursin
2009-11-06 15:28                                       ` Joern Rennecke
2009-11-06 15:46                                         ` Grigori Fursin
2009-11-06 15:54                                     ` Basile STARYNKEVITCH
2009-11-06 16:12                                       ` Grigori Fursin
2009-11-06 16:59                                         ` Basile STARYNKEVITCH
2009-11-06 17:09                                           ` Grigori Fursin
     [not found]                             ` <-2186575642631489790@unknownmsgid>
2009-11-05 14:34                               ` Yuanjie Huang
2009-11-05 16:27                                 ` Grigori Fursin
2009-12-23 15:13                                   ` target hooks / plugins Joern Rennecke
2009-12-24  0:33                                     ` Joern Rennecke
2009-12-24 12:15                                       ` Joseph S. Myers
2010-01-05 17:06                                         ` Joern Rennecke
2010-01-13  8:22                                         ` Joern Rennecke
2010-01-13 13:49                                           ` Joseph S. Myers
2010-01-13 15:48                                             ` Target hook definition licensing problems (GPL vs GFDL) Joern Rennecke
2010-01-13 19:45                                               ` Dave Korn
2010-01-17 23:16                                               ` Gerald Pfeifer
2010-04-15  9:04                                                 ` Joern Rennecke
2010-01-13 16:09                                             ` target hooks / plugins Joern Rennecke
2010-01-13 16:18                                               ` Joseph S. Myers
2009-12-24 12:26                                       ` Joseph S. Myers
2009-12-31  7:15                                         ` Grigori Fursin
2009-12-30 22:12                                       ` Richard Guenther [this message]
     [not found]                                 ` <-904648346490528905@unknownmsgid>
2009-11-06  5:18                                   ` [plugins-ici-cloning-instrumentation] new GCC plugin developements Yuanjie HUANG
2009-11-06 17:14                           ` Joern Rennecke
2009-11-06 18:18                             ` Grigori Fursin
2009-11-06 18:30                               ` Joern Rennecke
2009-11-06 18:44                                 ` Grigori Fursin
2009-11-09  1:43                                   ` Joern Rennecke
2009-11-09 14:28                                     ` Grigori Fursin
2009-11-09 14:46                                     ` Grigori Fursin
2009-11-09 18:15                                     ` Joern Rennecke
2009-11-09 21:19                                       ` Grigori Fursin
2009-11-10  5:16                                         ` Joern Rennecke
2009-11-10 21:17                                           ` Grigori Fursin
2009-11-14 11:50                                           ` Grigori Fursin
2009-11-17 14:43                                             ` Grigori Fursin
2009-11-18 17:06                                             ` [plugins-ici-cloning-instrumentation] install-plugin Makefile target Joern Rennecke
2009-11-18 17:18                                               ` Rafael Espindola
2009-11-18 17:41                                               ` Diego Novillo
2009-11-18 18:27                                                 ` Basile STARYNKEVITCH
2009-11-18 18:47                                                   ` Joern Rennecke
2009-10-28 15:35             ` plugin hooks Basile STARYNKEVITCH
2009-10-28 20:32             ` Rafael Espindola
2009-10-27 15:39           ` Basile STARYNKEVITCH
2009-10-27 16:19             ` Joseph S. Myers
2009-10-28 19:34         ` Rafael Espindola
2009-10-28 20:36           ` Basile STARYNKEVITCH
2009-10-28 21:44             ` Richard Guenther
2009-10-29  5:07               ` Basile STARYNKEVITCH
2009-10-28 19:02       ` Rafael Espindola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84fc9c000912301412r7fd02bc3v2e0703937131c945@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=amylaar@spamcop.net \
    --cc=ctuning-discussions@googlegroups.com \
    --cc=dnovillo@google.com \
    --cc=gcc@gcc.gnu.org \
    --cc=grigori.fursin@inria.fr \
    --cc=huangyuanjie@ict.ac.cn \
    --cc=pengliang@ict.ac.cn \
    --cc=yuri.kashnikoff@gmail.com \
    --cc=zbigniew.chamski@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).