1. 17 Feb, 2010 21 commits
  2. 16 Feb, 2010 13 commits
    • random.h (linear_congruential_engine(_Sseq&), [...]): Do not enable for the type itself. · 05eeebfe
      2010-02-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/random.h (linear_congruential_engine(_Sseq&),
      	mersenne_twister_engine(_Sseq&), subtract_with_carry_engine(_Sseq&)):
      	Do not enable for the type itself.
      	(discard_block_engine(_Sseq&), independent_bits_engine(_Sseq&),
      	shuffle_order_engine(_Sseq&)): Do not enable for the type itself too.
      	(linear_congruential_engine<>::seed(_Sseq&),
      	mersenne_twister_engine<>::seed(_Sseq&),
      	subtract_with_carry_engine<>::seed(_Sseq&)): Use enable_if on the
      	return type.
      	(discard_block_engine<>::seed(_Sseq&),
      	independent_bits_engine<>::seed(_Sseq&),
      	shuffle_order_engine<>::seed(_Sseq&)): Do not use enable_if.
      	* include/bits/random.tcc: Adjust definitions.
      	* testsuite/26_numerics/random/independent_bits_engine/cons/copy.cc:
      	New.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
      	copy.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/
      	copy.cc: Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/cons/
      	copy.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/cons/
      	copy.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/
      	copy.cc: Likewise.
      
      	* testsuite/26_numerics/random/independent_bits_engine/cons/
      	base_move.cc: Minor tweaks.
      	* testsuite/26_numerics/random/independent_bits_engine/cons/seed1.cc:
      	Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/cons/seed2.cc:
      	Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/cons/
      	base_copy.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/independent_bits_engine/cons/
      	seed_seq.cc: Likewise.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
      	seed1.cc: Likewise.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
      	seed2.cc: Likewise.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
      	seed_seq.cc: Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/base_move.cc:
      	Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/seed1.cc:
      	Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/seed2.cc:
      	Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/base_copy.cc:
      	Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/default.cc:
      	Likewise.
      	* testsuite/26_numerics/random/discard_block_engine/cons/seed_seq.cc:
      	Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/cons/seed1.cc:
      	Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/cons/seed2.cc:
      	Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/cons/
      	default.cc: Likewise.
      	* testsuite/26_numerics/random/mersenne_twister_engine/cons/
      	seed_seq.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/cons/
      	seed1.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/cons/
      	seed2.cc: Likewise.
      	* testsuite/26_numerics/random/linear_congruential_engine/cons/
      	seed_seq.cc: Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/base_move.cc:
      	Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/seed1.cc:
      	Likewise.
       	* testsuite/26_numerics/random/shuffle_order_engine/cons/seed2.cc:
      	Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/base_copy.cc:
      	Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/default.cc:
      	Likewise.
      	* testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq.cc:
      	Likewise.
      
      From-SVN: r156815
      Paolo Carlini committed
    • tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Fix return type. · 5498b6d2
      	* tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
      	Fix return type.  Fix argument type.  Explain meaning of return value.
      
      From-SVN: r156814
      Joern Rennecke committed
    • re PR middle-end/41043 (virtual memory exhausted: Cannot allocate memory) · b09bae68
      2010-02-16  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/41043
      	* tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for
      	real loops.
      	(vrp_visit_assignment_or_call): Do not ask SCEV for regular
      	statements ...
      	(vrp_visit_phi_node): ... but only for loop PHI nodes.
      
      	* gfortran.dg/pr41043.f90: New testcase.
      	* gcc.dg/Wstrict-overflow-18.c: XFAIL.
      
      From-SVN: r156808
      Richard Guenther committed
    • unique_ptr.h: (unique_ptr<>:: unique_ptr(const unique_ptr<_Up... · d779a591
      2010-02-16  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/unique_ptr.h: (unique_ptr<>::
      	unique_ptr(const unique_ptr<_Up, _Up_Deleter>&),
      	operator=(const unique_ptr<_Up, _Up_Deleter>&)): Remove, redundant,
      	per DR 1303.
      	* include/bits/shared_ptr.h (shared_ptr<>::
      	shared_ptr(const unique_ptr<_Up, _Up_Deleter>&),
      	operator=(const unique_ptr<_Up, _Up_Deleter>&)): Likewise.
      	* include/bits/shared_ptr_base.h (__shared_ptr<>::
      	__shared_ptr(const unique_ptr<_Up, _Up_Deleter>&),
      	operator=(const unique_ptr<_Up, _Up_Deleter>&)): Likewise.
      	* testsuite/20_util/unique_ptr/modifiers/reset_neg.cc: Adjust.
      	* testsuite/20_util/unique_ptr/assign/assign_neg.cc: Likewise.
      	* testsuite/20_util/shared_ptr/cons/unique_ptr_neg.cc: Likewise.
      	* testsuite/20_util/shared_ptr/assign/unique_ptr_lvalue_neg.cc:
      	Likewise.
      
      From-SVN: r156807
      Paolo Carlini committed
    • * g++.dg/cpp0x/initlist-opt.C: Declare max_val inline. · 7c7580ef
      From-SVN: r156804
      Jason Merrill committed
    • * cp-gimplify.c (cp_gimplify_expr): Fix error recovery. · 0d08582e
      From-SVN: r156803
      Jason Merrill committed
    • re PR tree-optimization/43074 (ICE in vectorizable_reduction, at tree-vect-loop.c:3491) · 99f51320
      
      	PR tree-optimization/43074
      	* tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
      	* tree-vect-loop.c (vect_analyze_loop_operations): Add
      	vectorizable cycles in hybrid SLP check.
      	* tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
      
      From-SVN: r156800
      Ira Rosen committed
    • alias.c (memrefs_conflict_p): Distinguish must-alias from don't know. · f47e08d9
      2010-02-16  Richard Guenther  <rguenther@suse.de>
      
      	* alias.c (memrefs_conflict_p): Distinguish must-alias from
      	don't know.
      	(true_dependence): If memrefs_conflict_p computes must-alias
      	trust it.  Move TBAA check after offset-based disambiguation.
      	(canon_true_dependence): Likewise.
      
      From-SVN: r156797
      Richard Guenther committed
    • re PR fortran/43040 (Wrong decl for mathbuiltins -> wrong code with LTO) · 7bc19392
      2010-02-16  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/43040
              * gfortran.h (gfc_isym_id): Rename GFS_ISYM_GAMMA to
              * GFS_ISYM_TGAMMA.
              * intrinsic.c (add_functions): Ditto.
              * iresolve.c (gfc_resolve_gamma): Call tgamma instead of gamma.
              * mathbuiltins.def: Use TGAMMA instead of GAMMA with "tgamma".
      
      From-SVN: r156796
      Tobias Burnus committed
    • params.def (PARAM_MAX_VARTRACK_SIZE): New. · ec8c3978
      	* params.def (PARAM_MAX_VARTRACK_SIZE): New.
      	* doc/invoke.texi: Document it.
      	* var-tracking.c: Include toplev.h and params.h.
      	(vt_find_locations): Return bool indicating success.  Compute
      	hash sizes unconditionally.  Check new parameter, report.
      	(variable_tracking_main_1): Check vt_find_locations results and
      	retry.  Renamed from...
      	(variable_tracking_main): ... this.  New wrapper to preserve
      	flag_var_tracking_assignments.
      	* Makefile.in (var-tracking.o): Adjust dependencies.
      
      	* lib/prune.exp: Prune variable tracking size limit exceeded
      	notes.
      
      From-SVN: r156794
      Jakub Jelinek committed
    • re PR c++/43031 (internal compiler error: verify_gimple failed after non-trivial… · 1e2ddf80
      re PR c++/43031 (internal compiler error: verify_gimple failed after non-trivial conversion error when crosscompiling Firefox)
      
      	PR c++/43031
      	* cp-gimplify.c (cp_gimplify_expr) [MODIFY_EXPR]: Use
      	VIEW_CONVERT_EXPR for conversions between structural equality types
      	that the back end can't tell are the same.
      
      From-SVN: r156793
      Jason Merrill committed
    • re PR c++/43036 (c++ compilation hang) · 38e40fcd
      	PR c++/43036
      	* tree.c (build_cplus_array_type): Set TYPE_MAIN_VARIANT to strip
      	cv-quals from element here.
      	(cp_build_qualified_type_real): Not here.  Preserve typedef name.
      
      From-SVN: r156792
      Jason Merrill committed
    • Daily bump. · d96f5ff5
      From-SVN: r156789
      GCC Administrator committed
  3. 15 Feb, 2010 6 commits
    • re PR target/42854 (FAIL: gcc.dg/darwin-weakimport-[13].c scan-assembler-not *) · 3bf6b403
      	PR target/42854
      	* config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
      	if weak_import attribute is present.
      	* config/darwin.c (machopic_select_section): Likewise.
      
      Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
      
      From-SVN: r156786
      Jack Howarth committed
    • initlist-opt.C: Bind pic locally. · 6dbe8a32
      	* g++.dg/cpp0x/initlist-opt.C: Bind pic locally.
      
      From-SVN: r156785
      Kaveh R. Ghazi committed
    • median.cc: Adjust. · 961e1fdc
      2010-02-15  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/ext/median.cc: Adjust.
      
      From-SVN: r156780
      Paolo Carlini committed
    • tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document. · a934eb2d
      	* doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
      	(TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
      	(TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
      	(TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
      
      	* doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument types.
      
      	* doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
      	Fix argument types.
      
      	* doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
      	Rewrite text to refer to the names.
      
      From-SVN: r156779
      Joern Rennecke committed
    • Add support for vpermil2p* in XOP. · 02edd2f6
      2010-02-13  Sebastian Pop  <sebastian.pop@amd.com>
      
      	* config/i386/i386-builtin-types.def
      	(V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
      	(V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
      	(V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
      	(V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
      	* config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
      	IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
      	IX86_BUILTIN_VPERMIL2PS256.
      	(MULTI_ARG_4_DF2_DI_I): Defined.
      	(MULTI_ARG_4_DF2_DI_I1): Defined.
      	(MULTI_ARG_4_SF2_SI_I): Defined.
      	(MULTI_ARG_4_SF2_SI_I1): Defined.
      	(bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
      	__builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
      	__builtin_ia32_vpermil2ps256.
      	(ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
      	MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
      	MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
      	(ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
      	MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
      	MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
      	CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
      	CODE_FOR_xop_vpermil2v8sf3.
      	* config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
      	* config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
      	* config/i386/xopintrin.h (_mm_permute2_pd): New.
      	(_mm256_permute2_pd): New.
      	(_mm_permute2_ps): New.
      	(_mm256_permute2_ps): New.
      
      	* gcc.target/i386/sse-14.c: Add tests for _mm_permute2_pd,
      	_mm256_permute2_pd, _mm_permute2_ps, and _mm256_permute2_ps.
      	* gcc.target/i386/xop-vpermil2pd-1.c: New.
      	* gcc.target/i386/xop-vpermil2pd-256-1.c: New.
      	* gcc.target/i386/xop-vpermil2ps-1.c: New.
      	* gcc.target/i386/xop-vpermil2ps-256-1.c: New.
      
      From-SVN: r156778
      Sebastian Pop committed
    • stl_algo.h (__median): Move... · d5c59224
      2010-02-15  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/stl_algo.h (__median): Move...
      	* include/ext/algorithm: ... here, being an SGI extension.
      
      From-SVN: r156776
      Paolo Carlini committed