This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gengtype & plugins [#define emitted in wrong order]
- From: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: Rafael Espindola <espindola at google dot com>, Diego Novillo <dnovillo at google dot com>
- Date: Thu, 01 Oct 2009 08:34:36 +0200
- Subject: Re: gengtype & plugins [#define emitted in wrong order]
- References: <4AC3CBF5.9030008@starynkevitch.net> <4AC44702.7050508@starynkevitch.net>
Basile STARYNKEVITCH wrote:
However, it seems to me that in plugin mode, the #define are emitted
in the wrong order.
Correcting the problem is actually simple, as the attached patch
(against trunk r152356) demonstrates. I just moved the
write_func_for_structure calls inside write_types into their own loops.
I am also attaching the gcc/ChangeLog entry
Ok for trunk if it bootstraps?
It did bootstrap on amd64 debian sid (linux x86-64).
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***