1. 27 Apr, 2011 2 commits
  2. 26 Apr, 2011 29 commits
  3. 25 Apr, 2011 9 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
    • type_traits (struct underlying_type): Add. · a47407f6
      2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/std/type_traits (struct underlying_type): Add.
      	* testsuite/20_util/underlying_type/requirements/typedefs-1.cc: New.
      	* testsuite/20_util/underlying_type/requirements/typedefs-2.cc:
      	Likewise.
      	* testsuite/20_util/underlying_type/requirements/
      	explicit_instantiation.cc: Likewise.
      	* testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
      	line number.
      
      From-SVN: r172944
      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
    • titan.md (automata_option "progress"): Remove. · 4d583bb9
      2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
      
              * config/rs6000/titan.md (automata_option "progress"): Remove.
      
      From-SVN: r172940
      Segher Boessenkool committed
    • Typo in test · f49ad344
      From-SVN: r172939
      Jeff Law committed
    • tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too. · 1f3fcdc3
      
      	* tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
      
      	* gcc.dg/tree-ssa/vrp56.c: new test.
      
      From-SVN: r172938
      Jeff Law committed
    • * go.test/go-test.exp (go-set-goarch): Accept mips*-*-*. · 328db450
      From-SVN: r172937
      Rainer Orth committed
    • libgo/time: Support Irix 6 location of zoneinfo files. · eb864be4
      From-SVN: r172936
      Ian Lance Taylor committed