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 PR40081, wrong gimple from SRA


On Sun, May 10, 2009 at 3:11 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> This fixes wrong gimple from SRA created because SRA possibly uses
> volatile qualified scalar types as replacements which is obviously
> bogus (and at least a missed optimization, but in this case causing
> invalid gimple). ?The problem is latent since ever, thus I plan
> only to fix the trunk and 4.4.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
> Also tested on the 4.4 branch, queued for applying there.
>
> Richard.
>
> 2009-05-10 ?Richard Guenther ?<rguenther@suse.de>
>
> ? ? ? ?PR tree-optimization/40081
> ? ? ? ?* tree-sra.c (instantiate_element): Instantiate scalar replacements
> ? ? ? ?using the main variant of the element type. ?Do not fiddle with
> ? ? ? ?TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
>
> ? ? ? ?* g++.dg/torture/pr40081.C: New testcase.
>
>

This caused:

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


H.J.


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