This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Some gengtype clean-ups
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Richard Sandiford <richard at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 22 Jan 2006 11:32:09 -0800
- Subject: Re: RFA: Some gengtype clean-ups
- References: <87vewehbcw.fsf@talisman.home>
Richard Sandiford wrote:
> The specific changes are:
>
> - Several bits of code called new_structure to create a structure and
> immediately called find_structure to "find" it again. I changed
> new_structure so that it returned the new type instead.
>
> - There are several inline copies of the code to create a new option.
> I've made them use create_option instead.
>
> - Some places that create new options can be simplified by passing a
> "next" argument to create_option.
>
> - There were several inline copies of the code to create a fake field.
> I've added a new function, create_field, for this purpose.
>
> Bootstrapped & regression-tested on i686-linux-gnu. OK to install?
OK, thanks.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713