1. 29 Jan, 2014 14 commits
    • alloc_traits.h (allocator_traits::_S_allocate): Do not use varargs when argument could be non-POD. · 20067423
      	* include/bits/alloc_traits.h (allocator_traits::_S_allocate): Do
      	not use varargs when argument could be non-POD.
      	(__alloctr_rebind_helper): Eliminate static const bool member by
      	using true_type and false_type.
      	(allocator_traits::__allocate_helper): Likewise.
      	(allocator_traits::__construct_helper): Likewise.
      	(allocator_traits::__destroy_helper): Likewise.
      	(allocator_traits::__maxsize_helper): Likewise.
      	(allocator_traits::__select_helper): Likewise.
      	* include/bits/ptr_traits.h (__ptrtr_rebind_helper): Likewise.
      	* include/bits/stl_tree.h (_Rb_tree::operator=(const _Rb_tree&)):
      	Remove redundant condition.
      	* include/bits/stl_vector.h (vector::operator=(const vector&)):
      	Likewise.
      	(_Vector_impl::_M_allocate, _Vector_impl::_M_deallocate): Use
      	indirection through __alloc_traits.
      	* include/ext/alloc_traits.h (__allocator_always_compares_equal):
      	Eliminate static const bool members by using true_type and false_type.
      	(__gnu_cxx::__alloc_traits::__is_custom_pointer): Optimize.
      	* testsuite/util/testsuite_allocator.h (PointerBase): Define.
      	* testsuite/20_util/allocator_traits/members/allocate_hint_nonpod.cc:
      	New.
      	* testsuite/20_util/allocator_traits/requirements/typedefs2.cc: New.
      
      From-SVN: r207240
      Jonathan Wakely committed
    • re PR middle-end/58742 (pointer arithmetic simplification) · 77574c35
      2014-01-29  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/58742
      	* tree-ssa-forwprop.c (associate_pointerplus): Rename to
      	associate_pointerplus_align.
      	(associate_pointerplus_diff): New function.
      	(associate_pointerplus): Likewise.  Call associate_pointerplus_align
      	and associate_pointerplus_diff.
      
      	* gcc.dg/pr58742-1.c: New testcase.
      	* gcc.dg/pr58742-2.c: Likewise.
      	* gcc.dg/pr58742-3.c: Likewise.
      
      From-SVN: r207239
      Richard Biener committed
    • lto-streamer.h (LTO_major_version): Bump to 3. · 15b25b24
      2014-01-29  Richard Biener  <rguenther@suse.de>
      
      	* lto-streamer.h (LTO_major_version): Bump to 3.
      	(LTO_minor_version): Reset to 0.
      
      From-SVN: r207238
      Richard Biener committed
    • [ARM] Add -march=armv7ve · eb6006ad
      gcc/
      2014-01-29  Renlin Li  <Renlin.Li@arm.com>
      
      	* config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
      	* config/arm/arm.c (FL_FOR_ARCH7VE): New.
      	(arm_file_start): Generate correct asm header for armv7ve.
      	* config/arm/bpabi.h: Add multilib support for armv7ve.
      	* config/arm/driver-arm.c: Change the architectures of cortex-a7
      	and cortex-a15 to armv7ve.
      	* config/arm/t-aprofile: Add multilib support for armv7ve.
      	* doc/invoke.texi: Document -march=armv7ve.
      
      gcc/testsuite/
      2014-01-29  Renlin Li  <Renlin.Li@arm.com>
      
      	* gcc.target/arm/ftest-armv7ve-arm.c: New.
      	* gcc.target/arm/ftest-armv7ve-thumb.c: New.
      	* lib/target-supports.exp: New armfunc, armflag and armdef for armv7ve.
      
      From-SVN: r207237
      Renlin Li committed
    • re PR c++/59315 (g++.dg/warn/Wunused-3.C FAILs with -fno-use-cxa-atexit) · dc9e1b86
      	PR c++/59315
      	* decl.c (cxx_maybe_build_cleanup): Call mark_used.
      
      From-SVN: r207236
      Jason Merrill committed
    • re PR c++/58702 (ICE with undeclared variable in OpenMP reduction clause) · 4ca56230
      /cp
      2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58702
      	* semantics.c (finish_omp_reduction_clause): Check type for
      	error_mark_node.
      
      /testsuite
      2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/58702
      	* g++.dg/gomp/pr58702.C: New.
      
      From-SVN: r207235
      Paolo Carlini committed
    • Fix test c-c++-common/cpp/warning-zero-location-2.c · 72ca8909
      gcc/testsuite/ChangeLog:
      
      	* c-c++-common/cpp/warning-zero-location-2.c: Fix error message
      	specifier.
      
      Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
      
      From-SVN: r207234
      Dodji Seketeli committed
    • re PR middle-end/58742 (pointer arithmetic simplification) · 4bfb2fa2
      2014-01-29  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/58742
      	* tree-ssa-forwprop.c (associate_plusminus): Return true
      	if we changed sth, defer EH cleanup to ...
      	(ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
      	(simplify_mult): New function.
      
      From-SVN: r207232
      Richard Biener committed
    • re PR middle-end/59917 (ICE in calc_dfs_tree, at dominance.c:401) · 09b22f48
      	PR middle-end/59917
      	PR tree-optimization/59920
      	* tree.c (build_common_builtin_nodes): Remove
      	__builtin_setjmp_dispatcher initialization.
      	* omp-low.h (make_gimple_omp_edges): Add a new int * argument.
      	* profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
      	instead of gsi_after_labels + manually skipping debug stmts.
      	Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
      	ignore bbs with IFN_ABNORMAL_DISPATCHER.
      	* tree-inline.c (copy_edges_for_bb): Remove
      	can_make_abnormal_goto argument, instead add abnormal_goto_dest
      	argument.  Ignore computed_goto_p stmts.  Don't call
      	make_abnormal_goto_edges.  If a call might need abnormal edges
      	for non-local gotos, see if it already has an edge to
      	IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
      	with true argument, don't do anything then, otherwise add
      	EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
      	(copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
      	caller.
      	* gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
      	(lower_function_body): Don't emit __builtin_setjmp_dispatcher.
      	(lower_stmt): Don't set data->calls_builtin_setjmp.
      	(lower_builtin_setjmp): Adjust comment.
      	* builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
      	* tree-cfg.c (found_computed_goto): Remove.
      	(factor_computed_gotos): Remove.
      	(make_goto_expr_edges): Return bool, true for computed gotos.
      	Don't call make_abnormal_goto_edges.
      	(build_gimple_cfg): Don't set found_computed_goto, don't call
      	factor_computed_gotos.
      	(computed_goto_p): No longer static.
      	(make_blocks): Don't set found_computed_goto.
      	(get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
      	(make_edges): If make_goto_expr_edges returns true, push bb
      	into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
      	instead of calling make_abnormal_goto_edges push bb into ab_edge_call
      	vector.  Record mapping between bbs and OpenMP regions if there
      	are any, adjust make_gimple_omp_edges caller.  Call
      	handle_abnormal_edges.
      	(make_abnormal_goto_edges): Remove.
      	* tree-cfg.h (make_abnormal_goto_edges): Remove.
      	(computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
      	* internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
      	* builtins.c (expand_builtin): Don't handle
      	BUILT_IN_SETJMP_DISPATCHER.
      	* internal-fn.def (ABNORMAL_DISPATCHER): New.
      	* omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
      	filling *region also set *region_idx to (*region)->entry->index.
      
      	* gcc.dg/pr59920-1.c: New test.
      	* gcc.dg/pr59920-2.c: New test.
      	* gcc.dg/pr59920-3.c: New test.
      	* c-c++-common/gomp/pr59917-1.c: New test.
      	* c-c++-common/gomp/pr59917-2.c: New test.
      
      From-SVN: r207231
      Jakub Jelinek committed
    • re PR other/58712 (issues found by --enable-checking=valgrind) · 42eb8bd1
      	PR other/58712
      	* read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
      	For REGs set ORIGINAL_REGNO.
      
      From-SVN: r207230
      Jakub Jelinek committed
    • md.texi: Mention that a target shouldn't implement vec_widen_(s|u)mul_even/odd pair if... · 4a271b7e
      2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
      
      	* doc/md.texi: Mention that a target shouldn't implement 
      	vec_widen_(s|u)mul_even/odd pair if it is less efficient
      	than hi/lo pair.
      
      From-SVN: r207228
      Bingfeng Mei committed
    • re PR tree-optimization/59594 (wrong code (by tree vectorizer) at -O3 on x86_64-linux-gnu) · 3d54b29d
      	PR tree-optimization/59594
      	* tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
      	a copy of the datarefs vector rather than the vector itself.
      
      	* gcc.dg/vect/no-vfa-vect-depend-2.c: New test.
      	* gcc.dg/vect/no-vfa-vect-depend-3.c: New test.
      	* gcc.dg/vect/pr59594.c: New test.
      
      From-SVN: r207225
      Jakub Jelinek committed
    • re PR c++/59791 (ICE: Error reporting routines re-entered. with -fcompare-debug) · 15b31f8c
      	PR c++/59791
      	* pt.c (tsubst_decl) [VAR_DECL]: Allow in unevaluated context.
      	(tsubst_copy): Use it if lookup fails.
      
      From-SVN: r207224
      Jason Merrill committed
    • Daily bump. · 52c02a46
      From-SVN: r207223
      GCC Administrator committed
  2. 28 Jan, 2014 26 commits