This is an automated email from the git hooks/post-receive script.
unknown user pushed a commit to branch aoliva/libcp1 in repository gcc.
commit 11c12cca8fd5591e56bb40e771b505436c937c92 Author: Alexandre Oliva aoliva@redhat.com Date: Fri Jul 3 13:30:46 2015 -0300
Fix plugin_new_decl
Tested and fixed static data members, member functions, member typedefs, and nested classes. --- libcc1/libcp1plugin.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 0e71c0e..862803e 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -504,7 +504,8 @@ plugin_new_decl (cc1_plugin::connection *self, decl = build_lang_decl_loc (loc, code, identifier, sym_type); if (TREE_CODE (sym_type) == VAR_DECL) { - // This block does the same as: + DECL_THIS_STATIC (decl) = 1; + // The remainder of this block does the same as: // set_linkage_for_static_data_member (decl); TREE_PUBLIC (decl) = 1; TREE_STATIC (decl) = 1; @@ -551,10 +552,10 @@ plugin_new_decl (cc1_plugin::connection *self, } }
- decl = safe_pushdecl_maybe_friend (decl, false); - if (class_member_p) finish_member_declaration (decl); + else + decl = safe_pushdecl_maybe_friend (decl, false);
rest_of_decl_compilation (decl, toplevel_bindings_p (), 0);