r280607 - PR 27200: Fix names of the atomic lock-free macros.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 3 17:56:43 PDT 2016


On 3 Sep 2016 5:52 p.m., "Joerg Sonnenberger via cfe-commits" <
cfe-commits at lists.llvm.org> wrote:

Author: joerg
Date: Sat Sep  3 19:44:10 2016
New Revision: 280607

URL: http://llvm.org/viewvc/llvm-project?rev=280607&view=rev
Log:
PR 27200: Fix names of the atomic lock-free macros.

Modified:
    cfe/trunk/lib/Headers/stdatomic.h

Modified: cfe/trunk/lib/Headers/stdatomic.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/
stdatomic.h?rev=280607&r1=280606&r2=280607&view=diff
============================================================
==================
--- cfe/trunk/lib/Headers/stdatomic.h (original)
+++ cfe/trunk/lib/Headers/stdatomic.h Sat Sep  3 19:44:10 2016
@@ -45,18 +45,18 @@ extern "C" {
 #define ATOMIC_CHAR16_T_LOCK_FREE   __GCC_ATOMIC_CHAR16_T_LOCK_FREE
 #define ATOMIC_CHAR32_T_LOCK_FREE   __GCC_ATOMIC_CHAR32_T_LOCK_FREE
 #define ATOMIC_WCHAR_T_LOCK_FREE    __GCC_ATOMIC_WCHAR_T_LOCK_FREE
-#define ATOMIC_SHORT_T_LOCK_FREE    __GCC_ATOMIC_SHORT_T_LOCK_FREE
-#define ATOMIC_INT_T_LOCK_FREE      __GCC_ATOMIC_INT_T_LOCK_FREE
-#define ATOMIC_LONG_T_LOCK_FREE     __GCC_ATOMIC_LONG_T_LOCK_FREE
-#define ATOMIC_LLONG_T_LOCK_FREE    __GCC_ATOMIC_LLONG_T_LOCK_FREE
-#define ATOMIC_POINTER_T_LOCK_FREE  __GCC_ATOMIC_POINTER_T_LOCK_FREE
+#define ATOMIC_SHORT_LOCK_FREE      __GCC_ATOMIC_SHORT_LOCK_FREE
+#define ATOMIC_INT_LOCK_FREE        __GCC_ATOMIC_INT_LOCK_FREE
+#define ATOMIC_LONG_LOCK_FREE       __GCC_ATOMIC_LONG_LOCK_FREE
+#define ATOMIC_LLONG_LOCK_FREE      __GCC_ATOMIC_LLONG_LOCK_FREE
+#define ATOMIC_POINTER_LOCK_FREE    __GCC_ATOMIC_POINTER_LOCK_FREE

 /* 7.17.2 Initialization */

 #define ATOMIC_VAR_INIT(value) (value)
 #define atomic_init __c11_atomic_init

-/* 7.17.3 Order and consistency */
+/* 7.17.3 Order and consistency */.


Stray period here. Do we not have any tests that include this header?


 typedef enum memory_order {
   memory_order_relaxed = __ATOMIC_RELAXED,


_______________________________________________
cfe-commits mailing list
cfe-commits at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160903/57131c0e/attachment-0001.html>


More information about the cfe-commits mailing list