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/47679] [4.9/5/6 Regression] Strange uninitialized warning after SRA


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47679

--- Comment #24 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Tue Sep 15 17:03:49 2015
New Revision: 227801

URL: https://gcc.gnu.org/viewcvs?rev=227801&root=gcc&view=rev
Log:
[PATCH] More class-ification of DOM

        PR tree-optimization/47679
        * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
        methods and private members.
        (avail_exprs_stack): Similarly.  Change type of global
        from a pair of expr_hash_elt_t to the new class.
        (expr_elt_hasher::hash): Corresponding changes.
        (expr_elt_hasher::equal): Similarly.
        (avail_expr_hash): Similarly.
        (pass_dominator::execute): Similarly.
        (dom_opt_dom_walker::thread_across_edge): Similarly.
        (record_cond): Similarly.
        (dom_opt_dom_walker::before_dom_children): Similarly.
        (dom_opt_dom_walker::after_dom_children): Similarly.
        (lookup_avail_expr): Likewise.
        (initialize_hash_element): Now a expr_hash_elt constructor.
        (initialize_hash_element_from_expr): Similarly.
        (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
        (free_expr_hash_elt): Call dtor for the element.
        (remove_local_expressions_from_table): Now the "pop_to_marker"
        method in the available_exprs_stack class.
        (avail_expr_stack::record_expr): Method factored out.
        (print_expr_hash_elt): Now a method in the expr_hash_elt class.
        Fix formatting.
        (hashable_expr_equal_p): Fix formatting.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-dom.c


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