[PATCH] User-unfriendly artificial SRA replacements

H.J. Lu hjl.tools@gmail.com
Mon Sep 26 20:46:00 GMT 2011


On Fri, Sep 17, 2010 at 5:57 AM, Martin Jambor <mjambor@suse.cz> wrote:
> Hi,
>
> this is a followup to my previous build_ref_for_offset patch.  If
> build_user_friendly_ref_for_offset does not succeed when building an
> artificial SRA access, we use build_ref_for_model which produces an
> expression we cannot use in warnings and so I introduced a flag in the
> access to remember that fact.
>
> Bootstrapped and tested on x86_64-linux, ok for trunk?
>
> Thanks,
>
> Martin
>
>
> 2010-09-15  Martin Jambor  <mjambor@suse.cz>
>
>        * tree-sra.c (struct access): New field grp_no_warning.
>        (create_access_replacement): Set TREE_NO_WARNING according to
>         grp_no_warning.
>        (create_artificial_child_access): Use build_ref_for_model and set
>        grp_no_warning if build_user_friendly_ref_for_offset fails.
>        (propagate_subaccesses_across_link): Likewise.
>

This caused:

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

-- 
H.J.



More information about the Gcc-patches mailing list