------- Comment #25 from rguenther at suse dot de 2009-06-14 15:41 ------- Subject: Re: optimizer bug (possibly)
On Sun, 14 Jun 2009, jason at redhat dot com wrote: > ------- Comment #23 from jason at redhat dot com 2009-06-14 15:39 ------- > Subject: Re: optimizer bug (possibly) > > On 06/13/2009 06:58 PM, rguenth at gcc dot gnu dot org wrote: > > * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call > > has its address taken if NRV was applied and it is addressable. > > This should check TREE_ADDRESSABLE on the type rather than the variable. For what middle-end semantics? I check TREE_ADDRESSABLE to leave it completely to the frontend if the LHS is addressable or not. So the frontend should only set it if the type is TREE_ADDRESSABLE then. Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40389