1. 17 Apr, 2011 1 commit
  2. 16 Apr, 2011 11 commits
    • Replace sprintf with snprintf · d30fe1c5
      From-SVN: r172590
      Janne Blomqvist committed
    • predicates.md: Reorganize and simplify predicates. · 9c575e20
      	* config/pa/predicates.md: Reorganize and simplify predicates.
      	Eliminate duplicate code checks.
      	(arith_operand): Rename to arith14_operand
      	(reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
      	* config/pa/pa.md: Use renamed operands.
      	* config/pa/pa-protos.h (symbolic_operand): Delete declaration.
      	(tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
      	arith11_operand, adddi3_operand, indexed_memory_operand,
      	symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
      	arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
      	borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
      	move_dest_operand, move_src_operand, prefetch_cc_operand,
      	prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
      	uint32_operand, reg_before_reload_operand, reg_or_0_operand,
      	reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
      	div_operand, int5_operand, movb_comparison_operator,
      	ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
      	arith_double_operand, ireg_operand, lhs_lshift_operand,
      	pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
      	integer_store_memory_operand): Likewise.
      	* config/pa/pa.c (adddi3_operand): Move to predicates.md.
      	(integer_store_memory_operand, read_only_operand,
      	function_label_operand, borx_reg_operand,
      	non_hard_reg_operand): Likewise.
      	(eq_neq_comparison_operator): Delete unused operator.
      	(legitimize_pic_address): Use VOIDmode for mode argument in calls to
      	function_label_operand.
      	(emit_move_sequence): Likewise.
      
      From-SVN: r172588
      John David Anglin committed
    • sse.md (sseunpackmode): New mode attribute. · 8dfb9f16
      	* config/i386/sse.md (sseunpackmode): New mode attribute.
      	(ssepackmode): Ditto.
      	(vec_pack_trunc_<mode>): Macroize expander from
      	vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
      	(vec_unpacks_lo_<mode>): Macroize expander from
      	vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
      	(vec_unpacks_hi_<mode>): Macroize expander from
      	vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
      	(vec_unpacku_lo_<mode>): Macroize expander from
      	vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
      	(vec_unpacku_hi_<mode>): Macroize expander from
      	vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
      	* config/i386/i386.c (ix86_expand_sse_unpack): Merge with
      	ix86_expand_sse4_unpack.
      	* config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
      
      From-SVN: r172585
      Uros Bizjak committed
    • lto.c (lto_balanced_map): Fix typos in head comment. · b9843260
      	* lto.c (lto_balanced_map): Fix typos in head comment.
      	(lto_promote_cross_file_statics): Fix long lines and remove redundant
      	test.
      
      From-SVN: r172584
      Eric Botcazou committed
    • cgraphbuild.c: Include ipa-inline.h. · e7f23018
      
      	* cgraphbuild.c: Include ipa-inline.h.
      	(reset_inline_failed): Use initialize_inline_failed.
      	* cgraph.c: Include ipa-inline.h.
      	(cgraph_create_node_1): Do not initialize estimated_growth.
      	(initialize_inline_failed): More to ipa-inline-analysis.c
      	(dump_cgraph_node): Do not dump inline flags.
      	* cgraph.h (cgraph_local_info): Remove inlineable, versionable
      	and disregard_inline_limits flags.
      	(cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
      	time, size, estimated_growth.
      	* ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary): Update.
      	* cgraphunit.c (cgraph_decide_is_function_needed): Use
      	DECL_DISREGARD_INLINE_LIMITS.
      	(cgraph_analyze_function): Do not initialize
      	node->local.disregard_inline_limits.
      	* lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
      	inlinable, versionable and disregard_inline_limits.
      	* ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
      	cgraph_check_inline_limits, cgraph_default_inline_p, cgraph_edge_badness,
      	update_caller_keys, update_callee_keys, add_new_edges_to_heap): Update.
      	(cgraph_decide_inlining_of_small_function): Update; set CIF_FUNCTION_NOT_INLINABLE
      	for uninlinable functions.
      	(cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
      	cgraph_decide_inlining_incrementally): Update.
      	* ipa-inline.h (inline_summary): Add inlinable, versionable, disregard_inline_limits,
      	estimated_stack_size, stack_frame_offset, time, size and estimated_growth
      	parameters.
      	(estimate_edge_growth): Update.
      	(initialize_inline_failed): Declare.
      	* ipa-split.c: Include ipa-inline.h
      	(execute_split_functions): Update.
      	* ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
      	(cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
      	(record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
      	* ipa-inline-analysis.c (inline_node_removal_hook): Update; set
      	estimated_growth to INT_MIN.
      	(inline_node_duplication_hook): Likewise.
      	(dump_inline_summary): Dump new fields.
      	(compute_inline_parameters): Update.
      	(estimate_edge_time, estimate_time_after_inlining,
      	estimate_size_after_inlining, estimate_growth, inline_read_summary,
      	inline_write_summary):
      	(initialize_inline_failed): Move here from cgraph.c.
      	* tree-sra.c: Include ipa-inline.h.
      	(ipa_sra_preliminary_function_checks): Update.
      	* lto/lto.c (lto_balanced_map): Update.
      	Update.
      	* Makefile.in: (cgraph.o, cgraphbuild.o): Add dependency on
      	ipa-inline.h
      
      From-SVN: r172581
      Jan Hubicka committed
    • sse.md (V16): New mode iterator. · e81b8564
      	* config/i386/sse.md (V16): New mode iterator.
      	(VI1, VI8): Ditto.
      	(AVXMODEQI, AVXMODEDI): Remove.
      	(sse2, sse3): New mode attribute.
      	(mov<mode>): Use V16 mode iterator.
      	(*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
      	(push<mode>1): Use V16 mode iterator.
      	(movmisalign<mode>): Ditto.
      	(<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
      	<sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
      	(*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
      	*<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
      	(<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
      	avx_movdqu<avxmodesuffix>.
      	(*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
      	*avx_movdqu<avxmodesuffix>.
      	(<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
      	avx_lddqu<avxmodesuffix>.
      	(<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
      	(<sse2>_movnt<mode>): Merge from sse2_movntv2di and
      	avx_movnt<AVXMODEDI:mode>.
      	* config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
      	renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
      
      testsuite/ChangeLog:
      
      	* gcc.target/i386/avx256-unaligned-load-1.c: Update scan patterns.
      	* gcc.target/i386/avx256-unaligned-load-2.c: Ditto.
      	* gcc.target/i386/avx256-unaligned-load-3.c: Ditto.
      	* gcc.target/i386/avx256-unaligned-store-1.c: Ditto.
      	* gcc.target/i386/avx256-unaligned-store-2.c: Ditto.
      	* gcc.target/i386/avx256-unaligned-store-3.c: Ditto.
      
      From-SVN: r172580
      Uros Bizjak committed
    • * MAINTAINERS (Write After Approval): Add myself. · 271d3f8d
      From-SVN: r172536
      Jim Meyering committed
    • re PR libstdc++/48631 ([C++0x] default_delete<T[]> accepts pointer conversions… · d4610485
      re PR libstdc++/48631 ([C++0x] default_delete<T[]> accepts pointer conversions in function call operator)
      
      2011-04-15  Daniel Krugler  <daniel.kruegler@googlemail.com>
      	    Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/48631
      	* include/bits/unique_ptr.h (default_delete<_Tp[]>): Add deleted
      	function call operator.
      	* testsuite/20_util/default_delete/48631_neg.cc: New.
      	* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error
      	line numbers.
      
      Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
      
      From-SVN: r172534
      Daniel Krugler committed
    • re PR libstdc++/48635 ([C++0x] unique_ptr<T, D&> moves the deleter instead of copying it) · 2705a8d6
      2011-04-15  Daniel Krugler  <daniel.kruegler@googlemail.com>
      	    Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR libstdc++/48635
      	* include/bits/unique_ptr.h (unique_ptr<>::operator=(unique_ptr&&),
      	unique_ptr<>::operator=(unique_ptr<>&&),
      	unique_ptr<_Tp[],>::operator=(unique_ptr&&),
      	unique_ptr<_Tp[],>::operator=(unique_ptr<>&&)): Forward the deleter
      	instead of moving it.
      	* testsuite/20_util/unique_ptr/assign/48635.cc: New.
      
      Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
      
      From-SVN: r172532
      Daniel Krugler committed
    • 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
    • Daily bump. · 5a0f6eba
      From-SVN: r172530
      GCC Administrator committed
  3. 15 Apr, 2011 28 commits