This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix pessimization with volatile objects
- From: Richard Guenther <rguenther at suse dot de>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 Sep 2010 10:34:12 +0200 (CEST)
- Subject: Re: [patch] Fix pessimization with volatile objects
- References: <201008312213.41067.ebotcazou@adacore.com>
On Tue, 31 Aug 2010, Eric Botcazou wrote:
> Hi Richard,
>
> last January you applied a fix for an issue related to volatile objects:
>
> 2010-01-31 Richard Guenther <rguenther@suse.de>
>
> PR middle-end/42898
> * gimplify.c (gimplify_init_constructor): For volatile LHS
> initialize a temporary.
>
> on all branches. Unfortunately this pessimizes a relatively common case in
> Ada, namely the assignment from a constructor with only one element. May I
> apply the attached patch on all branches as well (after testing)?
Yes.
Thanks,
Richard.