1. 12 Nov, 2011 13 commits
  2. 11 Nov, 2011 21 commits
  3. 10 Nov, 2011 6 commits
    • extend.texi: Document __atomic_test_and_set and __atomic_clear. · 1aabd05e
      
      2011-11-10  Andrew MacLeod  <amacleod@redhat.com>
      
      	* doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
      
      From-SVN: r181273
      Andrew MacLeod committed
    • re PR c++/50973 ([C++0x] internal compiler error defaulted destructor virtual inheritance) · 99c18869
      	PR c++/50973
      	* decl2.c (mark_used): Defer synthesis of virtual functions.
      	* method.c (use_thunk): Make sure the target function has
      	DECL_INTERFACE_KNOWN.
      
      From-SVN: r181272
      Jason Merrill committed
    • re PR middle-end/51038 (29_atomics/atomic_flag/clear/1.cc test_and_set/explicit.cc implicit.cc) · d660c35e
      	PR middle-end/51038
      
      	libstdc++-v3
      	* include/bits/atomic_base.h (atomic_thread_fence): Call built-in.
      	(atomic_signal_fence): Call built-in.
      	(test_and_set, clear): Call new atomic built-ins.
      
      	gcc
      	* builtins.c (expand_builtin_atomic_clear): New.  Expand atomic_clear.
      	(expand_builtin_atomic_test_and_set): New.  Expand atomic test_and_set.
      	(expand_builtin): Add cases for test_and_set and clear.
      	* sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
      	(BUILT_IN_ATOMIC_CLEAR): New.
      
      	testsuite
      	* gcc.dg/atomic-invalid.c: Add test for invalid __atomic_clear models.
      	* gcc.dg/atomic-flag.c: New.  Test __atomic_test_and_set and
      	__atomic_clear.
      
      From-SVN: r181271
      Andrew MacLeod committed
    • PR c++/51079, DR 495 · 49fe93f4
      	PR c++/51079, DR 495
      	* call.c (joust): Check the second conversion sequence
      	before checking templates.
      
      From-SVN: r181270
      Jason Merrill committed
    • re PR debug/50983 (incorrect DW_LNS_negate_stmt) · c68b1bc7
      	PR debug/50983
      	* dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
      	value in the current line table.
      
      From-SVN: r181269
      Jason Merrill committed
    • fe.h (Serious_Errors_Detected): New macro. · 033ba5bf
      	* fe.h (Serious_Errors_Detected): New macro.
      	* gcc-interface/gigi.h (build_atomic_load): Declare.
      	(build_atomic_store): Likewise.
      	* gcc-interface/trans.c (atomic_sync_required_p): New predicate.
      	(call_to_gnu): Add ATOMIC_SYNC parameter.  Use local variable.
      	Build an atomic load for an In or In Out parameter if needed.
      	Build an atomic store for the assignment of an Out parameter if needed.
      	Build an atomic store to the target if ATOMIC_SYNC is true.
      	(present_in_lhs_or_actual_p): New predicate.
      	(gnat_to_gnu) <N_Identifier>: Build an atomic load if needed.
      	<N_Explicit_Dereference>: Likewise.
      	<N_Indexed_Component>: Likewise.
      	<N_Selected_Component>: Likewise.
      	<N_Assignment_Statement>: Adjust call to call_to_gnu.
      	Build an atomic store to the LHS if needed.
      	<N_Function_Call>:  Adjust call to call_to_gnu.
      	* gcc-interface/utils2.c: Include toplev.h.
      	(resolve_atomic_size): New static function.
      	(build_atomic_load): New function.
      	(build_atomic_store): Likewise.
      	* gcc-interface/Make-lang.in (ada/utils2.o): Add toplev.h.
      
      From-SVN: r181267
      Eric Botcazou committed