This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Fix struct reorg bug
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Rafael Espindola" <espindola at google dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "Diego Novillo" <dnovillo at google dot com>
- Date: Wed, 22 Oct 2008 13:26:15 +0200
- Subject: Re: [lto][patch] Fix struct reorg bug
- References: <38a0d8450810220352l6a25f193idbad7f85283bd4b7@mail.gmail.com>
On Wed, Oct 22, 2008 at 12:52 PM, Rafael Espindola <espindola@google.com> wrote:
> Currently the code tries to insert the newly created statements after
> the last of the newly created statements :-) That fails since the new
> statements don't have a basic block yet.
>
> We are not getting any SSA names in the tests, so new_stmts is always
> empty. Reordering some passes brings this bug to life.
>
> Is this patch also OK for trunk during stage3?
Yes.
Thanks,
Richard.
> 2008-10-22 Rafael Espindola <espindola@google.com>
>
> * ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
> newly created statements.
>
> Cheers,
> --
> Rafael Avila de Espindola
>
> Google | Gordon House | Barrow Street | Dublin 4 | Ireland
> Registered in Dublin, Ireland | Registration Number: 368047
>