aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2014-12-22 18:42:50 -0800
committerPaul Eggert2014-12-22 18:44:04 -0800
commite3040f2aee768655198dd6f979a1ff3a72d17d16 (patch)
tree3e4f1fa270b9f1dfee6b4009e2097f5d0bdc4e16
parentb11d8924b565bd96939537b10a70bb3c26532bed (diff)
downloademacs-e3040f2aee768655198dd6f979a1ff3a72d17d16.tar.gz
emacs-e3040f2aee768655198dd6f979a1ff3a72d17d16.zip
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.
-rw-r--r--ChangeLog8
-rw-r--r--lib/stdalign.in.h5
-rw-r--r--lib/utimens.c2
-rw-r--r--m4/stdalign.m48
4 files changed, 18 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 718a9588712..7e68314438d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
12014-12-23 Paul Eggert <eggert@cs.ucla.edu>
2
3 Merge from gnulib
4 2014-12-20 utimens: remove unnecessary assert
5 2014-12-16 stdalign: port better to HP compilers
6 2014-12-16 stdalign: work around Apple GCC 4.0 bug
7 * lib/stdalign.in.h, lib/utimens.c, m4/stdalign.m4: Update from gnulib.
8
12014-12-14 Paul Eggert <eggert@cs.ucla.edu> 92014-12-14 Paul Eggert <eggert@cs.ucla.edu>
2 10
3 Spelling fixes 11 Spelling fixes
diff --git a/lib/stdalign.in.h b/lib/stdalign.in.h
index dcaab55b577..413936df78c 100644
--- a/lib/stdalign.in.h
+++ b/lib/stdalign.in.h
@@ -95,7 +95,10 @@
95#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 95#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112
96# if defined __cplusplus && 201103 <= __cplusplus 96# if defined __cplusplus && 201103 <= __cplusplus
97# define _Alignas(a) alignas (a) 97# define _Alignas(a) alignas (a)
98# elif (__GNUC__ || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \ 98# elif ((defined __APPLE__ && defined __MACH__ \
99 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
100 : __GNUC__) \
101 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
99 || __ICC || 0x5110 <= __SUNPRO_C) 102 || __ICC || 0x5110 <= __SUNPRO_C)
100# define _Alignas(a) __attribute__ ((__aligned__ (a))) 103# define _Alignas(a) __attribute__ ((__aligned__ (a)))
101# elif 1300 <= _MSC_VER 104# elif 1300 <= _MSC_VER
diff --git a/lib/utimens.c b/lib/utimens.c
index dd3ec668f37..04441037631 100644
--- a/lib/utimens.c
+++ b/lib/utimens.c
@@ -24,7 +24,6 @@
24#define _GL_UTIMENS_INLINE _GL_EXTERN_INLINE 24#define _GL_UTIMENS_INLINE _GL_EXTERN_INLINE
25#include "utimens.h" 25#include "utimens.h"
26 26
27#include <assert.h>
28#include <errno.h> 27#include <errno.h>
29#include <fcntl.h> 28#include <fcntl.h>
30#include <stdbool.h> 29#include <stdbool.h>
@@ -87,7 +86,6 @@ validate_timespec (struct timespec timespec[2])
87{ 86{
88 int result = 0; 87 int result = 0;
89 int utime_omit_count = 0; 88 int utime_omit_count = 0;
90 assert (timespec);
91 if ((timespec[0].tv_nsec != UTIME_NOW 89 if ((timespec[0].tv_nsec != UTIME_NOW
92 && timespec[0].tv_nsec != UTIME_OMIT 90 && timespec[0].tv_nsec != UTIME_OMIT
93 && ! (0 <= timespec[0].tv_nsec 91 && ! (0 <= timespec[0].tv_nsec
diff --git a/m4/stdalign.m4 b/m4/stdalign.m4
index 9efafe5c5b2..f60257f16ab 100644
--- a/m4/stdalign.m4
+++ b/m4/stdalign.m4
@@ -32,8 +32,12 @@ AC_DEFUN([gl_STDALIGN_H],
32 /* Test _Alignas only on platforms where gnulib can help. */ 32 /* Test _Alignas only on platforms where gnulib can help. */
33 #if \ 33 #if \
34 ((defined __cplusplus && 201103 <= __cplusplus) \ 34 ((defined __cplusplus && 201103 <= __cplusplus) \
35 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \ 35 || (defined __APPLE__ && defined __MACH__ \
36 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER) 36 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
37 : __GNUC__) \
38 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
39 || __ICC || 0x5110 <= __SUNPRO_C \
40 || 1300 <= _MSC_VER)
37 struct alignas_test { char c; char alignas (8) alignas_8; }; 41 struct alignas_test { char c; char alignas (8) alignas_8; };
38 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8 42 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
39 ? 1 : -1]; 43 ? 1 : -1];