]> Savannah Git Hosting - gnulib.git/commitdiff
maint: fix __clang_major__ misspellings
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Dec 2021 23:24:03 +0000 (15:24 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Dec 2021 23:24:28 +0000 (15:24 -0800)
The intprops.h typo fix should fix a bug in Emacs on Debian testing
with clang <https://bugs.gnu.org/52711>.
* lib/asyncsafe-spin.c, lib/intprops.h, lib/pthread-spin.c:
Fix some misspellings of ‘__clang_major__’.
I left one misspelling alone, in lib/cdefs.h,
and instead reported that bug upstream here:
https://sourceware.org/pipermail/libc-alpha/2021-December/134512.html

ChangeLog
lib/asyncsafe-spin.c
lib/intprops.h
lib/pthread-spin.c

index 9c5b479082651b52dc4a590a07028c68963e1e2b..2436a491336036e1b34088f3eb50f732d509d767 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2021-12-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       maint: fix __clang_major__ misspellings
+       The intprops.h typo fix should fix a bug in Emacs on Debian testing
+       with clang <https://bugs.gnu.org/52711>.
+       * lib/asyncsafe-spin.c, lib/intprops.h, lib/pthread-spin.c:
+       Fix some misspellings of ‘__clang_major__’.
+       I left one misspelling alone, in lib/cdefs.h,
+       and instead reported that bug upstream here:
+       https://sourceware.org/pipermail/libc-alpha/2021-December/134512.html
+
 2021-12-21  Bruno Haible  <bruno@clisp.org>
 
        get_ppid_of, get_progname_of: Fix runtime error on Mac OS X < 10.5.
index 3771c4c0e4afca11c72aae7e8529eb6241dc1542..f14f5f11c90480d0b3d8fd038dab1ced51ee371d 100644 (file)
@@ -72,7 +72,7 @@ asyncsafe_spin_destroy (asyncsafe_spinlock_t *lock)
    require to link with -latomic.  */
 
 #  if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) \
-       || __clang_major > 3 || (__clang_major__ == 3 && __clang_minor__ >= 1)) \
+       || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 1)) \
       && !defined __ibmxl__
 /* Use GCC built-ins (available in GCC >= 4.7 and clang >= 3.1) that operate on
    the first byte of the lock.
index 7f20f09fa06318835f651875107841d4b3c8fbcc..a10d793e0aea37e2b6e8e16d4019436fbcfa7b39 100644 (file)
 #endif
 
 /* True if __builtin_mul_overflow (A, B, P) works when P is non-null.  */
-#if defined __clang_major_ && __clang_major__ < 14
+#if defined __clang_major__ && __clang_major__ < 14
 /* Work around Clang bug <https://bugs.llvm.org/show_bug.cgi?id=16404>.  */
 # define _GL_HAS_BUILTIN_MUL_OVERFLOW 0
 #else
index a82437c8349d1e20162c248a96691d7ec37c7689..2c57e4e6b31b68bb12c06d1e38902114a8b383df 100644 (file)
@@ -69,7 +69,7 @@ pthread_spin_destroy (pthread_spinlock_t *lock)
    require to link with -latomic.  */
 
 # if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7) \
-      || __clang_major > 3 || (__clang_major__ == 3 && __clang_minor__ >= 1)) \
+      || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 1)) \
      && !defined __ibmxl__
 /* Use GCC built-ins (available in GCC >= 4.7 and clang >= 3.1) that operate on
    the first byte of the lock.