This is the mail archive of the gcc-bugs@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]

[Bug middle-end/29272] [4.2 Regression] memcpy optimization causes wrong-code



------- Comment #10 from rguenther at suse dot de  2006-09-30 11:47 -------
Subject: Re:  [4.2 Regression] memcpy optimization
 causes wrong-code

On Sat, 29 Sep 2006, mrs at apple dot com wrote:

> ------- Comment #8 from mrs at apple dot com  2006-09-29 23:15 -------
> > If it is a VAR_DECL, then I believe the optimization is always safe
> 
> Not in C++.

As safe as using memcpy, which does not add any semantics to an
access using the VAR_DECL.  So I believe this is safe even for C++.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29272


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