1. 25 Jun, 2010 6 commits
    • profiler_trace.h: Uglify it to __it, use everywhere std::size_t instead of size_t. · 0b032f38
      2010-06-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/profile/impl/profiler_trace.h: Uglify it to __it, use
      	everywhere std::size_t instead of size_t.
      
      From-SVN: r161368
      Paolo Carlini committed
    • With large parts from Jim Wilson: · 0354c0c7
      	PR target/43902
      	* tree-pretty-print.c (dump_generic_node, op_code_prio): Add
      	WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
      	* optabs.c (optab_for_tree_code): Likewise.
      	(expand_widen_pattern_expr): Likewise.
      	* tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
      	out of execute_optimize_widening_mul.
      	(convert_plusminus_to_widen): New function.
      	(execute_optimize_widening_mul): Use the two new functions.
      	* expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
      	Remove code to generate widening multiply-accumulate.  Add support
      	for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
      	* gimple-pretty-print.c (dump_ternary_rhs): New function.
      	(dump_gimple_assign): Call it when appropriate.
      	* tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
      	* cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
      	(expand_gimple_stmt_1): Likewise.
      	(expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
      	WIDEN_MULT_MINUS_EXPR.
      	* tree-ssa-operands.c (get_expr_operands): Likewise.
      	* tree-inline.c (estimate_operator_cost): Likewise.
      	* gimple.c (extract_ops_from_tree_1): Renamed from
      	extract_ops_from_tree.  Add new arg for a third operand; fill it.
      	(gimple_build_assign_stat): Support operations with three operands.
      	(gimple_build_assign_with_ops_stat): Likewise.
      	(gimple_assign_set_rhs_from_tree): Likewise.
      	(gimple_assign_set_rhs_with_ops_1): Renamed from
      	gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
      	(get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
      	(get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
      	WIDEN_MULT_MINUS_EXPR.
      	* gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
      	(extract_ops_from_tree_1): Adjust declaration.
      	(gimple_assign_set_rhs_with_ops_1): Likewise.
      	(gimple_build_assign_with_ops): Pass NULL for last operand.
      	(gimple_build_assign_with_ops3): New macro.
      	(gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
      	gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
      	functions.
      	* tree-cfg.c (verify_gimple_assign_ternary): New static function.
      	(verify_gimple_assign): Call it.
      	* doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
      	(Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
      	functions for dealing with three-operand statements.
      	* tree.c (commutative_ternary_tree_code): New function.
      	* tree.h (commutative_ternary_tree_code): Declare it.
      	* tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for ternary
      	statements.
      	(gimple_assign_nonzero_warnv_p): Likewise.
      	* tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
      	* tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
      	(ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
      	* tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
      	(struct hashtable_expr): New member ternary in the union.
      	(initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
      	(hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
      	(iterative_hash_hashable_expr): Likewise.
      	(print_expr_hash_elt): Handle EXPR_TERNARY.
      	* gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
      	* tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
      	statements.  Handle GIMPLE_TERNARY_RHS.
      
      testsuite/
      	PR target/43902
      	* gcc.target/mips/madd-9.c: New test.
      
      From-SVN: r161366
      Bernd Schmidt committed
    • * doc/invoke.texi (-Wsuggest-attribute): Add noreturn. · 38f78b0c
      From-SVN: r161364
      Jan Hubicka committed
    • re PR c/44517 (improve diagnostic for mispelled typename in function declaration) · 09a1e889
      gcc/
      2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
      
              PR c/44517
              * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
              parameters are not good.
              (c_parser_parameter_declaration): Error unknown type name if the type
              name can't start declaration specifiers.
      
      gcc/testsuite/
      2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
      
              PR c/44517
              * gcc.dg/noncompile/pr44517.c: New.
              * gcc.dg/noncompile/990416-1.c: Adjust expected error.
      
      From-SVN: r161363
      Shujing Zhao committed
    • gcc.c (translate_options): Don't mention +e in comment. · 418f840c
      	* gcc.c (translate_options): Don't mention +e in comment.
      	(process_command): Don't handle +e specially.
      
      cp:
      	* lang-specs.h: Remove +e handling.
      
      objcp:
      	* lang-specs.h: Remove +e handling.
      
      From-SVN: r161355
      Joseph Myers committed
    • Daily bump. · c504fdd6
      From-SVN: r161354
      GCC Administrator committed
  2. 24 Jun, 2010 24 commits
  3. 23 Jun, 2010 10 commits
    • decl.c (java_init_decl_processing): Use double_int_to_tree instead of build_int_cst_wide. · c7d08869
      /java
      	* decl.c (java_init_decl_processing): Use double_int_to_tree instead
      	of build_int_cst_wide.
      	* boehm.c (set_bit): Remove.
      	(mark_reference_fields): Use double_int type for 'mask' argument.
      	Use double_int_setbit instead of set_bit.
      	(get_boehm_type_descriptor): Use double_int_setbit instead of
      	set_bit. Use double_int_to_tree instead of build_int_cst_wide.
      
      From-SVN: r161288
      Anatoly Sokolov committed
    • i386 (mov<mode>): Macroize expander from mov{sf,df,xf} using X87MODEF mode iterator. · bc051083
      	* config/i386/i386 (mov<mode>): Macroize expander from mov{sf,df,xf}
      	using X87MODEF mode iterator.
      	(pushsf splitter): Macroize splitter using P mode iterator.
      	(*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
      	mode iterator.
      
      	(*movxf_internal): Rename from *movxf_integer.
      	(*movxf_internal_nointeger): Rename from *movxf_nointeger.
      	(*movdf_internal_rex64): Rename from *movdf_integer_rex64.
      	(*movdf_internal): Rename from *movdf_integer.
      	(*movdf_internal_nointeger): Rename from *movdf_nointeger.
      	(*movsf_internal): Rename from *movdf_1.
      
      From-SVN: r161287
      Uros Bizjak committed
    • coretypes.h: (gimple_seq_node_d, gimple_seq_node) · cde8534c
      2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
      
      	* coretypes.h: (gimple_seq_node_d, gimple_seq_node)
      	(const_gimple_seq_node): Removed typedefs.
      
      	* gimple.h: (gimple_seq_node_d, gimple_seq_node)
      	(const_gimple_seq_node): Added typedefs moved from coretypes.h.
      
      From-SVN: r161283
      Basile Starynkevitch committed
    • re PR other/44644 (type/data name clash makes --enable-build-with-cxx cc1 hard to debug) · f12c802a
              PR other/44644
              * df-core.c (struct df): Rename to df_d.
              * df.h (struct df): Likewise.
              * dse.h (struct df): Remove forward declaration.
              * recog.h (struct insn_data): Rename to:
              (struct_insn_data_d).  Adjusted all users.
      
      From-SVN: r161281
      Joern Rennecke committed
    • Split AVX vec_extract_lo_XXX and 128bit to 256bit cast. · 9b2133cd
      Remove 256bit to 128bit cast.
      
      2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
      	CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
      	CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
      	and CODE_FOR_vec_extract_lo_v4df.
      
      	* config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
      	Changed to define_insn_and_split.
      	(vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
      	(vec_extract_lo_v16hi): Likewise.
      	(vec_extract_lo_v32qi): Likewise.
      	(avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
      	(avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
      
      From-SVN: r161279
      H.J. Lu committed
    • Fix header. · e487f350
      From-SVN: r161278
      Arnaud Charlet committed
    • [multiple changes] · 6e1ee5c3
      2010-06-23  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
      	reference to a protected subprogram outside of the protected's scope,
      	ensure the corresponding external subprogram is frozen before the
      	reference.
      
      2010-06-23  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_prag.adb: Fix typo in error message.
      	* sem.adb: Refine previous change.
      
      2010-06-23  Robert Dewar  <dewar@adacore.com>
      
      	* impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
      	a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
      	Implement Ada 2012 string encoding packages.
      
      2010-06-23  Arnaud Charlet  <charlet@adacore.com>
      
      	* a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
      	a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
      	a-szunau-shared.adb, a-szuzti-shared.adb: New files.
      	* gcc-interface/Makefile.in: Enable use of above files.
      
      From-SVN: r161277
      Arnaud Charlet committed
    • Add PR markers. · f52d94aa
      From-SVN: r161276
      Joern Rennecke committed
    • * config/spu/spu-protos.h (spu_expand_epilogue) Use bool. · 82c0295a
              * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
              (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
              (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
              (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
      
      From-SVN: r161274
      Joern Rennecke committed