gcc/libstdc++-v3/include
Andrew MacLeod d660c35ea2 re PR middle-end/51038 (29_atomics/atomic_flag/clear/1.cc test_and_set/explicit.cc implicit.cc)
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
2011-11-10 20:38:33 +00:00
..
backward make __stl_prime_list in comdat 2011-11-07 07:43:46 +00:00
bits re PR middle-end/51038 (29_atomics/atomic_flag/clear/1.cc test_and_set/explicit.cc implicit.cc) 2011-11-10 20:38:33 +00:00
c PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
c_compatibility PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
c_global acinclude.m4: Check for <stdalign.h> 2011-11-07 08:46:58 +00:00
c_std cmath (fmod(_Tp, _Up)): Add. 2011-08-12 15:40:01 +00:00
debug stl_vector.h (vector::_Alloc_traits): Make private. 2011-11-09 01:26:04 +00:00
decimal PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
ext PR c++/51027 - accepts alias-declaration without ';' 2011-11-09 09:00:58 +01:00
parallel user.cfg.in (PDF_HYPERLINKS): To NO. 2011-08-07 07:27:06 +00:00
precompiled stdc++.h: Add cstdalign. 2011-11-08 01:02:06 +00:00
profile unordered_map: Add missing copy constructors. 2011-11-09 08:23:30 +00:00
std shared_ptr_base.h (_Sp_counted_ptr): Make 'final'. 2011-11-08 16:45:54 +00:00
tr1 re PR libstdc++/50880 (__complex_acosh() picks wrong complex branch) 2011-11-02 18:43:26 +00:00
tr2 doxygroups.cc: Add markup for namespace tr2. 2011-11-03 22:23:35 +00:00
Makefile.am Return gthr-posix.h to libgcc (PR bootstrap/50982) 2011-11-07 16:34:31 +00:00
Makefile.in Return gthr-posix.h to libgcc (PR bootstrap/50982) 2011-11-07 16:34:31 +00:00