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 PR42898


On Sun, 31 Jan 2010, Eric Botcazou wrote:

> > Bootstrapped and tested on x86_64-unknown-linux-gnu on trunk, the 4.4
> > branch.  4.3 branch in progress.
> >
> > I'll install it everywhere once 4.3 finished (even though the testcase
> > will fail on the trunk for now).
> >
> > 2010-01-30  Richard Guenther  <rguenther@suse.de>
> >
> > 	PR middle-end/42898
> > 	* gimplify.c (gimplify_init_constructor): For volatile LHS
> > 	initialize a temporary.
> 
> Isn't backporting the following sufficient?
> 
> 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
> 
> 	* gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
> 	assignment from the constructor either if the target is volatile.

No, that doesn't handle *foo = { 0, 1, 2 }; basically we need to avoid
doing it for all kinds of obfuscated RHSs

Richard.


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