1. 09 Jul, 2011 7 commits
    • 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 33 commits