1. 09 Jul, 2011 14 commits
    • * tree.c (build_vec_init_elt): Strip TARGET_EXPR. · 20888def
      From-SVN: r176084
      Jason Merrill committed
    • re PR debug/49676 (inefficiency: DW_AT_GNU_call_site_value calculates everything << 32) · 5b696ba2
      	PR debug/49676
      	* dwarf2out.c (size_of_int_loc_descriptor): New function.
      	(address_of_int_loc_descriptor): Use it.
      	(scompare_loc_descriptor): Optimize EQ/NE comparison with
      	constant.
      
      From-SVN: r176083
      Jakub Jelinek committed
    • pdp11.md (define_c_enum "unspecv"): New. · 8662b2ba
      	* config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
      	(prologue, epilogue): New.
      	(return, *rts): New.
      	(blockage, setd, seti): New.
      	* config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
      	(TARGET_ASM_FUNCTION_EPILOGUE): Remove.
      	(pdp11_saved_regno): New.
      	(pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
      	generate rtl instead of text.
      	(pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
      	(pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
      	* config/pdp11/pdp11-protos.h: Update.
      
      From-SVN: r176082
      Richard Henderson committed
    • rs6000.c (rs6000_output_function_prologue): Don't try to insert an rtl prologue here. · 28b21ebb
      	* config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
      	try to insert an rtl prologue here.
      	(rs6000_output_function_epilogue): Similarly.
      	* config/rs6000/rs6000.md (prologue): Emit a barrier to
      	satisfy !TARGET_SCHED_PROLOG.
      	(epilogue, sibcall_epilogue): Likewise.
      
      From-SVN: r176081
      Richard Henderson committed
    • mpi.c (runtime_error): New function. · 41de45c6
      2011-07-09  Tobias Burnus  <burnus@net-b.de>
                  Daniel Carrera  <dcarrera@gmail.com>
      
              * caf/mpi.c (runtime_error): New function.
              (_gfortran_caf_register): Use it.
              (_gfortran_caf_sync_all): Use it, add STAT_STOPPED_IMAGE
              as possible status value.
              (_gfortran_caf_sync_images): Ditto.
      
      
      Co-Authored-By: Daniel Carrera <dcarrera@gmail.com>
      
      From-SVN: r176080
      Tobias Burnus committed
    • Makefile.am: Add new header. · 677aad9c
      2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* include/Makefile.am: Add new header.
      	* include/Makefile.in: Regenerate.
      	* include/std/scoped_allocator: New.
      	* doc/xml/manual/status_cxx200x.xml: Update.
      	* testsuite/20_util/scoped_allocator/1.cc: New.
      	* testsuite/20_util/scoped_allocator/propagation.cc: New.
      	* testsuite/20_util/scoped_allocator/requirements/typedefs.cc: New.
      	* testsuite/20_util/scoped_allocator/requirements/
      	explicit_instantiation.cc: New.
      
      From-SVN: r176079
      Jonathan Wakely committed
    • stl_vector.h: Use new allocator model in C++0x mode. · bd8485dc
      2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* include/bits/stl_vector.h: Use new allocator model in C++0x mode.
      	* include/bits/vector.tcc: Likewise.
      	* testsuite/util/testsuite_allocator.h (propagating_allocator): Define.
      	* testsuite/23_containers/vector/allocator/copy_assign.cc: New.
      	* testsuite/23_containers/vector/allocator/noexcept.cc: New.
      	* testsuite/23_containers/vector/allocator/copy.cc: New.
      	* testsuite/23_containers/vector/allocator/swap.cc: New.
      	* testsuite/23_containers/vector/allocator/move_assign.cc: New.
      	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
      	Adjust dg-error line numbers.
      	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
      	Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc:
      	Likewise.
      	* testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc:
      	Likewise.
      
      From-SVN: r176078
      Jonathan Wakely committed
    • alloc_traits.h (__allocator_always_compares_equal): New trait, provide partial… · d526242c
      alloc_traits.h (__allocator_always_compares_equal): New trait, provide partial specializations for known allocators.
      
      2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* include/ext/alloc_traits.h (__allocator_always_compares_equal): New
      	trait, provide partial specializations for known allocators.
      	(__alloc_traits::construct, __alloc_traits::destroy): Overload for
      	non-standard pointer types.
      	(__alloc_traits::_S_always_equal): New trait for use with noexcept.
      	(__alloc_traits::_S_nothrow_move): Likewise.
      	(__alloc_traits::_S_nothrow_swap): Likewise.
      
      From-SVN: r176077
      Jonathan Wakely committed
    • cast.h: Fix typo in include guard. · eece7163
      2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* include/ext/cast.h: Fix typo in include guard.
      	* include/ext/pointer.h (_Unqualified_type): Remove redundant
      	partial specializations for volatile types. Fix typos in comments.
      	(pointer_traits<_Pointer_adaptor<Tp>>::pointer_to): Define.
      
      From-SVN: r176075
      Jonathan Wakely committed
    • sparc.h (STACK_SAVEAREA_MODE): Move around. · 0a222ba7
      	* config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
      	(FP_REG_P): Delete.
      	(IN_OR_GLOBAL_P): Likewise.
      
      From-SVN: r176074
      Eric Botcazou committed
    • re PR libstdc++/49668 ([C++0x] std::thread does not forward its args as rvalues) · 4880236e
      2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	PR libstdc++/49668
      	* include/std/functional (__bind_simple): Define.
      	* include/std/future (_Task_setter): Parameterize by type of result
      	pointer instead of state object.
      	(_S_task_setter): Type deduction helper.
      	(_Task_state): Use _S_task_setter and __bind_simple.
      	(_Deferred_state, _Async_state): Store call wrapper directly not as
      	std::function. Use _S_task_setter and __bind_simple.
      	(_S_make_deferred_state, _S_make_async_state): Type deduction helpers.
      	(async): Use new functions and __bind_simple.
      	* include/std/mutex (call_once): Use __bind_simple.
      	* include/std/thread (thread): Likewise. Remove unused headers.
      	* src/thread.cc: Add header.
      	* testsuite/30_threads/async/49668.cc: New.
      	* testsuite/30_threads/call_once/49668.cc: New.
      	* testsuite/30_threads/thread/cons/49668.cc: New.
      	* testsuite/30_threads/thread/cons/moveable.cc: Remove unused bool.
      
      From-SVN: r176073
      Jonathan Wakely committed
    • re PR c++/45437 (Loses reference during update) · 4063e61b
      	PR c++/45437
      gcc/
      	* gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
      	compound assignment.
      gcc/c-family/
      	* c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
      gcc/cp/
      	* typeck.c (cp_build_modify_expr): Preevaluate RHS.
      
      From-SVN: r176072
      Jason Merrill committed
    • cgraph.c (cgraph_add_to_same_comdat_group): New. · 2fda8e14
      gcc/
      	* cgraph.c (cgraph_add_to_same_comdat_group): New.
      	* cgraph.h: Declare it.
      	* ipa.c (function_and_variable_visibility): Make sure thunks
      	have the right visibility.
      gcc/cp/
      	* method.c (use_thunk): Use cgraph_add_to_same_comdat_group.
      	* optimize.c (maybe_clone_body): Likewise.
      	* semantics.c (maybe_add_lambda_conv_op): Likewise.
      
      From-SVN: r176071
      Jason Merrill committed
    • Daily bump. · e8f8774a
      From-SVN: r176070
      GCC Administrator committed
  2. 08 Jul, 2011 26 commits