This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR38745
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 26 Jan 2009 07:53:23 -0800
- Subject: Re: [PATCH] Fix PR38745
- References: <alpine.LNX.2.00.0901231645220.24314@zhemvz.fhfr.qr>
On Fri, Jan 23, 2009 at 7:46 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> This fixes PR38745 by making sure not to rewrite register type,
> non-addressed variables into SSA if they are component-referenced.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, I'll wait for
> some expected comments before applying this ;)
>
> Thanks,
> Richard.
>
> 2009-01-23 Richard Guenther <rguenther@suse.de>
>
> PR tree-optimization/38745
> * tree-ssa.c (execute_update_addresses_taken): Do not include
> variables that cannot possibly be a register in not_reg_needs.
> Do not clear TREE_ADDRESSABLE on vars that may not become
> registers.
> * tree-ssa.c (update_alias_info_1): Include those in the set
> of addressable vars.
>
> * g++.dg/torture/pr38745.C: New testcase.
>
This may have caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38978
H.J.