[Bug c++/40389] optimizer bug (possibly)

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Sun Jun 14 15:42:00 GMT 2009



------- 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



More information about the Gcc-bugs mailing list