Re: (patch] Optimize assignment to volatile aggregate variable

2020-06-12 Thread Richard Biener via Gcc-patches
On Thu, Jun 11, 2020 at 1:52 PM Eric Botcazou wrote: > > Hi, > > gimplify_modify_expr_rhs has an optimization whereby the assignment to an > aggregate variable from a read-only object with a DECL_INITIAL is optimized > into the direct assignment of the DECL_INITIAL, provided that no temporary is >

(patch] Optimize assignment to volatile aggregate variable

2020-06-11 Thread Eric Botcazou
Hi, gimplify_modify_expr_rhs has an optimization whereby the assignment to an aggregate variable from a read-only object with a DECL_INITIAL is optimized into the direct assignment of the DECL_INITIAL, provided that no temporary is created in the process. The optimization is blocked if the rea