]> code.delx.au - gnu-emacs/commitdiff
Merge from gnulib
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Dec 2014 02:42:50 +0000 (18:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Dec 2014 02:44:04 +0000 (18:44 -0800)
2014-12-20 utimens: remove unnecessary assert
2014-12-16 stdalign: port better to HP compilers
2014-12-16 stdalign: work around Apple GCC 4.0 bug
* lib/stdalign.in.h, lib/utimens.c, m4/stdalign.m4: Update from gnulib.

ChangeLog
lib/stdalign.in.h
lib/utimens.c
m4/stdalign.m4

index 718a958871222413ba550b0c52d64d99fd9cc407..7e68314438d1e240f27ab6d0ee4d28dc37068a59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-12-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Merge from gnulib
+       2014-12-20 utimens: remove unnecessary assert
+       2014-12-16 stdalign: port better to HP compilers
+       2014-12-16 stdalign: work around Apple GCC 4.0 bug
+       * lib/stdalign.in.h, lib/utimens.c, m4/stdalign.m4: Update from gnulib.
+
 2014-12-14  Paul Eggert  <eggert@cs.ucla.edu>
 
        Spelling fixes
index dcaab55b577a83b38336f03bdbf15e55ec298f0c..413936df78c75a527794dcd23da26762d3b89454 100644 (file)
 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112
 # if defined __cplusplus && 201103 <= __cplusplus
 #  define _Alignas(a) alignas (a)
-# elif (__GNUC__ || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
+# elif ((defined __APPLE__ && defined __MACH__                  \
+         ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__)                 \
+         : __GNUC__)                                            \
+        || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__        \
         || __ICC || 0x5110 <= __SUNPRO_C)
 #  define _Alignas(a) __attribute__ ((__aligned__ (a)))
 # elif 1300 <= _MSC_VER
index dd3ec668f3753a7bc9cb70a8c0e15324d0c397c2..0444103763111903b9db452fe8d9988acc6455ec 100644 (file)
@@ -24,7 +24,6 @@
 #define _GL_UTIMENS_INLINE _GL_EXTERN_INLINE
 #include "utimens.h"
 
-#include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <stdbool.h>
@@ -87,7 +86,6 @@ validate_timespec (struct timespec timespec[2])
 {
   int result = 0;
   int utime_omit_count = 0;
-  assert (timespec);
   if ((timespec[0].tv_nsec != UTIME_NOW
        && timespec[0].tv_nsec != UTIME_OMIT
        && ! (0 <= timespec[0].tv_nsec
index 9efafe5c5b255e1b297335f6ff307881d11af05b..f60257f16ab7ad17d7ba18b528f6e9410188f2da 100644 (file)
@@ -32,8 +32,12 @@ AC_DEFUN([gl_STDALIGN_H],
             /* Test _Alignas only on platforms where gnulib can help.  */
             #if \
                 ((defined __cplusplus && 201103 <= __cplusplus) \
-                 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
-                 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
+                 || (defined __APPLE__ && defined __MACH__ \
+                     ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
+                     : __GNUC__) \
+                 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
+                 || __ICC || 0x5110 <= __SUNPRO_C \
+                 || 1300 <= _MSC_VER)
               struct alignas_test { char c; char alignas (8) alignas_8; };
               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
                                 ? 1 : -1];