1. 29 Apr, 2011 1 commit
    • In gcc/: 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com> · a88fdc2a
      In gcc/:
      2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* Makefile.in (ENABLE_MAINTAINER_RULES): New.
      
      In gcc/cp/:
      2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>,
      	    Mike Stump <mikestump@comcast.net>
      
      	* Make-lang.in ($(srcdir)/cp/cfns.h): Enable the dependency only
      	in maintainer mode.  Use the --output-file option of gperf instead
      	of > to prevent creating an empty cp/cfns.h when gperf is not
      	available.
      
      From-SVN: r173178
      Nicola Pero committed
  2. 28 Apr, 2011 7 commits
  3. 27 Apr, 2011 4 commits
  4. 26 Apr, 2011 2 commits
    • re PR c++/48530 ([C++0x][SFINAE] Hard errors with deleted d'tors) · 574cfaa4
      	PR c++/48530
      	* decl.c (cxx_maybe_build_cleanup): Add complain parm.
      	* tree.c (force_target_expr): Add complain parm.
      	(build_target_expr_with_type): Likewise.
      	(get_target_expr_sfinae): Split out.
      	(build_vec_init_expr, bot_manip): Adjust.
      	* init.c (build_vec_delete, build_vec_delete_1): Add complain parm.
      	(build_delete, build_dtor_call): Likewise.
      	(perform_direct_initialization_if_possible): Adjust.
      	(build_vec_init): Handle error return.
      	* cvt.c (force_rvalue): Add complain parm.
      	Call build_special_member_call directly.
      	* decl2.c (delete_sanity): Add complain parm.
      	(build_cleanup): Adjust.
      	* pt.c (tsubst_copy_and_build, tsubst_expr): Adjust.
      	* semantics.c (finish_stmt_expr_expr): Adjust.
      	(finish_compound_literal): Adjust.
      	* parser.c (cp_parser_delete_expression): Adjust.
      	* typeck2.c (build_functional_cast): Adjust.
      	* cp-tree.h: Adjust.
      
      From-SVN: r172985
      Jason Merrill committed
    • class.c (cp_fold_obj_type_ref): Remove. · 86262bb1
      2011-04-26  Martin Jambor  <mjambor@suse.cz>
      
      	* class.c (cp_fold_obj_type_ref): Remove.
      	* cp-tree.h (cp_fold_obj_type_ref): Remove declaration.
      
      From-SVN: r172977
      Martin Jambor committed
  5. 25 Apr, 2011 3 commits
    • c-common.c (struct c_common_resword): Add __underlying_type. · 74e883ce
      /gcc
      2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* c-family/c-common.c (struct c_common_resword): Add
      	__underlying_type.
      	* c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
      	* doc/extend.texi: Document __underlying_type.
      
      /cp
      2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* cp-tree.def: Add a new UNDERLYING_TYPE tree code.
      	* cp-tree.h (enum cp_trait_kind): Add CPTK_UNDERLYING_TYPE, tidy.
      	(UNDERLYING_TYPE_TYPE): Add.
      	* cp-objcp-common.c (cp_common_init_ts): Mark UNDERLYING_TYPE
      	as TS_COMMON.
      	* parser.c (cp_lexer_next_token_is_decl_specifier_keyword,
      	cp_parser_simple_type_specifier): Handle UNDERLYING_TYPE.
      	(cp_parser_trait_expr): Deal with RID_UNDERLYING_TYPE; tidy.
      	* semantics.c (finish_underlying_type): New.
      	* typeck.c (structural_comptypes): Handle UNDERLYING_TYPE.
      	* error.c (dump_type, dump_type_prefix, dump_type_suffix): Likewise.
      	* cxx-pretty-print.c (p_cxx_type_id): Likewise.
      	* tree.c (cp_walk_subtrees): Likewise.
      	* pt.c (for_each_template_parm_r, tsubst, unify,
      	dependent_type_p_r): Likewise.
      	* mangle.c (write_type): Sorry for __underlying_type.
      
      /testsuite
      2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* g++.dg/ext/underlying_type1.C: New.
      	* g++.dg/ext/underlying_type2.C: Likewise.
      	* g++.dg/ext/underlying_type3.C: Likewise.
      	* g++.dg/ext/underlying_type4.C: Likewise.
      	* g++.dg/ext/underlying_type5.C: Likewise.
      	* g++.dg/ext/underlying_type6.C: Likewise.
      	* g++.dg/ext/underlying_type7.C: Likewise.
      	* g++.dg/ext/underlying_type8.C: Likewise.
      	* g++.dg/ext/underlying_type9.C: Likewise.
      	* g++.dg/ext/underlying_type10.C: Likewise.
      
      From-SVN: r172945
      Paolo Carlini committed
    • c-common.c (struct c_common_resword): Add __underlying_type. · a0d260fc
      /gcc
      2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* c-family/c-common.c (struct c_common_resword): Add
      	__underlying_type.
      	* c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
      
      /cp
      2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* cp-tree.def: Add a new UNDERLYING_TYPE tree code.
      	* cp-tree.h (enum cp_trait_kind): Add CPTK_UNDERLYING_TYPE, tidy.
      	(UNDERLYING_TYPE_TYPE): Add.
      	* cp-objcp-common.c (cp_common_init_ts): Mark UNDERLYING_TYPE
      	as TS_COMMON.
      	* parser.c (cp_lexer_next_token_is_decl_specifier_keyword,
      	cp_parser_simple_type_specifier): Handle UNDERLYING_TYPE.
      	(cp_parser_trait_expr): Deal with RID_UNDERLYING_TYPE; tidy.
      	* semantics.c (finish_underlying_type): New.
      	* typeck.c (structural_comptypes): Handle UNDERLYING_TYPE.
      	* error.c (dump_type, dump_type_prefix, dump_type_suffix): Likewise.
      	* cxx-pretty-print.c (p_cxx_type_id): Likewise.
      	* tree.c (cp_walk_subtrees): Likewise.
      	* pt.c (for_each_template_parm_r, tsubst, unify,
      	dependent_type_p_r): Likewise.
      	* mangle.c (write_type): Sorry for __underlying_type.
      	* doc/extend.texi: Document __underlying_type.
      
      /testsuite
      2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* g++.dg/ext/underlying_type1.C: New.
      	* g++.dg/ext/underlying_type2.C: Likewise.
      	* g++.dg/ext/underlying_type3.C: Likewise.
      	* g++.dg/ext/underlying_type4.C: Likewise.
      	* g++.dg/ext/underlying_type5.C: Likewise.
      	* g++.dg/ext/underlying_type6.C: Likewise.
      	* g++.dg/ext/underlying_type7.C: Likewise.
      	* g++.dg/ext/underlying_type8.C: Likewise.
      	* g++.dg/ext/underlying_type9.C: Likewise.
      	* g++.dg/ext/underlying_type10.C: Likewise.
      
      From-SVN: r172943
      Paolo Carlini committed
    • re PR c++/48707 ([c++0x] ICE initializing static const int) · d95f258e
      	PR c++/48707
      	* decl.c (type_dependent_init_p): New.
      	(cp_finish_decl): Check it.
      	* pt.c (any_type_dependent_elements_p): New.
      	* cp-tree.h: Declare it.
      
      From-SVN: r172941
      Jason Merrill committed
  6. 21 Apr, 2011 4 commits
  7. 20 Apr, 2011 4 commits
  8. 18 Apr, 2011 7 commits
  9. 17 Apr, 2011 1 commit
    • re PR middle-end/20991 (ICE in cgraph_mark_reachable_node) · 2e9bb6ba
      	* cgraph.c (cgraph_clone_node): Do not handle vtable_method
      	* cgraph.h (struct cgraph_local_info): Drop vtable_method.
      	* cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
      	* lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable method.
      	* gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
      	gimple-fold.c
      	* varasm.c (mark_decl_referenced): Drop vtable_method handling code.
      	* cp/class.c (cp_fold_obj_type_ref): Drop vtable_method.
      
      From-SVN: r172613
      Jan Hubicka committed
  10. 16 Apr, 2011 1 commit
    • Implement N3271 · deb9642d
      	Implement N3271
      	* parser.c (cp_convert_range_for): Split into
      	cp_parser_perform_range_for_lookup.
      	(cp_parser_perform_range_for_lookup): New.
      	(cp_parser_range_for_member_function): New.
      	(cp_parser_for_init_statement): Correct error message.
      	* semantics.c (finish_call_expr): Accept COMPONENT_REF.
      
      From-SVN: r172531
      Jason Merrill committed
  11. 14 Apr, 2011 6 commits