From: Laurynas Biveinis <laurynas.biveinis@gmail.com>
To: Basile Starynkevitch <basile@starynkevitch.net>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: PATCH [trunk] gengtype should generate ggc_alloc macros in plugin mode on for plugin files
Date: Tue, 19 Apr 2011 07:13:00 -0000 [thread overview]
Message-ID: <BANLkTimN7X=1g-acC7303oaYv8UrXuvLZA@mail.gmail.com> (raw)
In-Reply-To: <20110411033552.75423cd2.basile@starynkevitch.net>
On 04/11/2011 04:35 AM, Basile Starynkevitch wrote:
> 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
>
> * gengtype.h (struct input_file_st): Add inpisplugin field.
> (type_fileloc): New function.
> * gengtype.c
> (write_typed_struct_alloc_def): Add gcc_assert.
> (write_typed_alloc_defns): Ditto. Don't output for plugin files.
> (write_typed_alloc_defns): Don't output for plugin files.
> (input_file_by_name): Clear inpisplugin field.
> (main): Set inpisplugin field for plugin files.
Did you test this patch that it bootstraps and that a GTY-using plugin
gets the right set of definitions in the output?
> @@ -4814,6 +4830,7 @@ input_file_by_name (const char* name)
> f = XCNEWVAR (input_file, sizeof (input_file)+namlen+2);
> f->inpbitmap = 0;
> f->inpoutf = NULL;
> + f->inpisplugin = 0;
= false;
> @@ -304,6 +305,7 @@ struct type {
> } u;
> };
>
> +
> /* The one and only TYPE_STRING. */
> extern struct type string_type;
>
Please drop this.
OK with these changes and confirmation that the patch was tested.
Thanks,
Laurynas
next prev parent reply other threads:[~2011-04-19 3:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 19:54 PATCH [trunk] gengtype should generate ggc_alloc macros in plugin mode Basile Starynkevitch
2011-04-07 2:46 ` Laurynas Biveinis
2011-04-08 5:46 ` Basile Starynkevitch
2011-04-08 6:22 ` Duncan Sands
2011-04-08 12:30 ` Laurynas Biveinis
2011-04-08 17:57 ` Basile Starynkevitch
2011-04-10 18:47 ` Laurynas Biveinis
2011-04-10 18:51 ` Basile Starynkevitch
2011-04-11 1:37 ` PATCH [trunk] gengtype should generate ggc_alloc macros in plugin mode on for plugin files Basile Starynkevitch
2011-04-15 4:24 ` Laurynas Biveinis
2011-04-15 7:26 ` Basile Starynkevitch
2011-04-19 7:13 ` Laurynas Biveinis [this message]
2011-04-19 10:12 ` Basile Starynkevitch
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='BANLkTimN7X=1g-acC7303oaYv8UrXuvLZA@mail.gmail.com' \
--to=laurynas.biveinis@gmail.com \
--cc=basile@starynkevitch.net \
--cc=gcc-patches@gcc.gnu.org \
/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).