This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR38745


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]