------- Comment #2 from jamborm at gcc dot gnu dot org  2009-11-30 18:00 -------
Subject: Bug 42196

Author: jamborm
Date: Mon Nov 30 17:59:57 2009
New Revision: 154834

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154834
Log:
2009-11-30  Martin Jambor  <mjam...@suse.cz>

        PR middle-end/42196
        * tree-sra.c (struct access): New field grp_different_types.
        (dump_access): Dump grp_different_types.
        (compare_access_positions): Prefer scalars and vectors over other
        scalar types.
        (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
        (sra_modify_expr): Use the original also when dealing with a complex
         or vector group accessed as multiple types.

        * testsuite/gcc.c-torture/compile/pr42196-1.c: New test.
        * testsuite/gcc.c-torture/compile/pr42196-2.c: New test.
        * testsuite/gcc.c-torture/compile/pr42196-3.c: New test.


Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr42196-1.c
    trunk/gcc/testsuite/gcc.c-torture/compile/pr42196-2.c
    trunk/gcc/testsuite/gcc.c-torture/compile/pr42196-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-sra.c


-- 


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

Reply via email to