This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/52445] [4.6/4.7 Regression] conditional store replacement causes segfault in generated code


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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-01 14:13:13 UTC ---
Author: jakub
Date: Thu Mar  1 14:13:06 2012
New Revision: 184743

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184743
Log:
    PR tree-optimization/52445
    * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
    add ssa_name_ver, offset and size fields and change store field
    to bool.
    (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
    (add_or_mark_expr): Likewise.  Only consider previous stores
    with the same size and offset.
    (nt_init_block): Only look at gimple_assign_single_p stmts,
    doesn't look at rhs2.

    * gcc.dg/pr52445.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr52445.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-phiopt.c


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