1. 26 Apr, 2011 12 commits
  2. 25 Apr, 2011 15 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
    • libgo: Irix 6 patches. · 9f3b1e6c
      From Rainer Orth.
      
      From-SVN: r172935
      Ian Lance Taylor committed
    • ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h. · e5b0dad8
      include/
      	* ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.
      
      contrib/
      	* paranoia.cc (ENUM_BITFIELD): Remove.
      
      gcc/
      	* system.h (ENUM_BITFIELD): Remove.
      
      libcpp/
      	* system.h (ENUM_BITFIELD): Remove.
      
      From-SVN: r172933
      Jan Kratochvil committed
    • Use backend interface for function types. · 482829ac
      Drop type_tree() functions for Float_type and Complex_type.
      Don't define builtin functions until gogo is created.
      
      	* go-gcc.cc (Gcc_backend::error_type): Implement.
      	(Gcc_backend::string_type): Remove.
      	(Gcc_backend::function_type): Change signature and implement.
      	(Gcc_backend::struct_type): Change signature.
      	(Gcc_backend::slice_type, Gcc_backend::map_type): Remove.
      	(Gcc_backend::channel_type, Gcc_backend::interface_type): Remove.
      	(Gcc_backend::pointer_type): Check for error.
      	* Make-lang.in (go/types.o): Depend on go/gofrontend/backend.h.
      
      From-SVN: r172932
      Ian Lance Taylor committed
    • Use backend interface for basic types · 0aa5e7f2
      	* go-gcc.c (class Gcc_tree): Make get_tree const.
      	(Gcc_backend::void_type): Implement.
      	(Gcc_backend::bool_type): Implement.
      	(Gcc_backend::integer_type): Implement.
      	(Gcc_backend::float_type): Implement.
      	(Gcc_backend::complex_type): New function.
      	(Gcc_backend::pointer_type): New function.
      	(Gcc_backend::make_type): New function.
      	(type_to_tree): New function.
      
      From-SVN: r172931
      Evan Shaw committed
    • combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals for STORE_FLAG_VALUE==-1 case. · 5157a881
      	* combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
      	for STORE_FLAG_VALUE==-1 case.
      
      Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
      
      From-SVN: r172930
      Maxim Kuvyrkov committed
    • Daily bump. · 0c289711
      From-SVN: r172929
      GCC Administrator committed
  3. 24 Apr, 2011 9 commits
  4. 23 Apr, 2011 4 commits