This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Stream TYPE_NONALIASED_COMPONENT in LTO mode
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 Sep 2012 12:08:20 +0200
- Subject: Re: [patch] Stream TYPE_NONALIASED_COMPONENT in LTO mode
- References: <3036368.zAi4UHg0cd@polaris>
On Mon, Sep 24, 2012 at 12:05 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
> Hi,
>
> although the type merging machinery deals with TYPE_NONALIASED_COMPONENT, the
> flag is actually not streamed, which can result in strange performance drops
> for Ada applications in LTO mode. The attached patch plugs this hole.
>
> Tested on x86_64-suse-linux and LTO-bootstrapped. I also checked that the 4.7
> compiler can still compile a big Ada application in LTO mode. Can I put this
> both on mainline and 4.7 branch. This only affects Ada.
Yes, sure.
Thanks,
Richard.
>
> 2012-09-24 Eric Botcazou <ebotcazou@adacore.com>
>
> * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
> TYPE_NONALIASED_COMPONENT flag.
> * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
> TYPE_NONALIASED_COMPONENT flag.
>
>
> --
> Eric Botcazou