diff options
| author | Paul Eggert | 2016-09-07 17:04:49 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-09-07 18:10:11 -0700 |
| commit | 12a7e0f88eaa68aabe7e32589e2d5c8f776f6346 (patch) | |
| tree | ac3b18f919ab71149b7fe50fdcaf7a953cced651 /m4 | |
| parent | a08ce41ed8e9fd8768dcd1ecd22ff6bc4c4c7f8f (diff) | |
| download | emacs-12a7e0f88eaa68aabe7e32589e2d5c8f776f6346.tar.gz emacs-12a7e0f88eaa68aabe7e32589e2d5c8f776f6346.zip | |
Update from gnulib
This incorporates:
2016-09-07 flexmember: new macro FLEXALIGNOF
2016-09-07 flexmember: port better to GCC + valgrind
2016-08-18 Port modules to use getprogname explicitly
2016-09-02 manywarnings: add -fno-common
* admin/merge-gnulib (GNULIB_TOOL_FLAGS): Don’t avoid flexmember,
since time_rz now uses part of it. Instead, remove m4/flexmember.m4.
* configure.ac (AC_C_FLEXIBLE_ARRAY_MEMBER): Define away,
since Emacs assumes C99 and therefore removes m4/flexmember.m4.
* lib/euidaccess.c, lib/group-member.c, lib/time_rz.c:
* m4/manywarnings.m4: Copy from gnulib.
* lib/flexmember.h: New file, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/gnulib-comp.m4 | 15 | ||||
| -rw-r--r-- | m4/manywarnings.m4 | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index 5a3fc98597c..5fc667c3520 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 | |||
| @@ -79,6 +79,7 @@ AC_DEFUN([gl_EARLY], | |||
| 79 | # Code from module fdopendir: | 79 | # Code from module fdopendir: |
| 80 | # Code from module filemode: | 80 | # Code from module filemode: |
| 81 | # Code from module filevercmp: | 81 | # Code from module filevercmp: |
| 82 | # Code from module flexmember: | ||
| 82 | # Code from module fpending: | 83 | # Code from module fpending: |
| 83 | # Code from module fstatat: | 84 | # Code from module fstatat: |
| 84 | # Code from module fsync: | 85 | # Code from module fsync: |
| @@ -413,6 +414,7 @@ AC_DEFUN([gl_INIT], | |||
| 413 | gl_gnulib_enabled_dirfd=false | 414 | gl_gnulib_enabled_dirfd=false |
| 414 | gl_gnulib_enabled_dosname=false | 415 | gl_gnulib_enabled_dosname=false |
| 415 | gl_gnulib_enabled_euidaccess=false | 416 | gl_gnulib_enabled_euidaccess=false |
| 417 | gl_gnulib_enabled_flexmember=false | ||
| 416 | gl_gnulib_enabled_getdtablesize=false | 418 | gl_gnulib_enabled_getdtablesize=false |
| 417 | gl_gnulib_enabled_getgroups=false | 419 | gl_gnulib_enabled_getgroups=false |
| 418 | gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false | 420 | gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false |
| @@ -472,6 +474,13 @@ AC_DEFUN([gl_INIT], | |||
| 472 | fi | 474 | fi |
| 473 | fi | 475 | fi |
| 474 | } | 476 | } |
| 477 | func_gl_gnulib_m4code_flexmember () | ||
| 478 | { | ||
| 479 | if ! $gl_gnulib_enabled_flexmember; then | ||
| 480 | AC_C_FLEXIBLE_ARRAY_MEMBER | ||
| 481 | gl_gnulib_enabled_flexmember=true | ||
| 482 | fi | ||
| 483 | } | ||
| 475 | func_gl_gnulib_m4code_getdtablesize () | 484 | func_gl_gnulib_m4code_getdtablesize () |
| 476 | { | 485 | { |
| 477 | if ! $gl_gnulib_enabled_getdtablesize; then | 486 | if ! $gl_gnulib_enabled_getdtablesize; then |
| @@ -679,6 +688,9 @@ AC_DEFUN([gl_INIT], | |||
| 679 | if { test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; } && test $ac_cv_type_unsigned_long_long_int = yes; then | 688 | if { test $HAVE_DECL_STRTOUMAX = 0 || test $REPLACE_STRTOUMAX = 1; } && test $ac_cv_type_unsigned_long_long_int = yes; then |
| 680 | func_gl_gnulib_m4code_strtoull | 689 | func_gl_gnulib_m4code_strtoull |
| 681 | fi | 690 | fi |
| 691 | if test "$HAVE_TIMEZONE_T" = 0; then | ||
| 692 | func_gl_gnulib_m4code_flexmember | ||
| 693 | fi | ||
| 682 | if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then | 694 | if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then |
| 683 | func_gl_gnulib_m4code_5264294aa0a5557541b53c8c741f7f31 | 695 | func_gl_gnulib_m4code_5264294aa0a5557541b53c8c741f7f31 |
| 684 | fi | 696 | fi |
| @@ -687,6 +699,7 @@ AC_DEFUN([gl_INIT], | |||
| 687 | AM_CONDITIONAL([gl_GNULIB_ENABLED_dirfd], [$gl_gnulib_enabled_dirfd]) | 699 | AM_CONDITIONAL([gl_GNULIB_ENABLED_dirfd], [$gl_gnulib_enabled_dirfd]) |
| 688 | AM_CONDITIONAL([gl_GNULIB_ENABLED_dosname], [$gl_gnulib_enabled_dosname]) | 700 | AM_CONDITIONAL([gl_GNULIB_ENABLED_dosname], [$gl_gnulib_enabled_dosname]) |
| 689 | AM_CONDITIONAL([gl_GNULIB_ENABLED_euidaccess], [$gl_gnulib_enabled_euidaccess]) | 701 | AM_CONDITIONAL([gl_GNULIB_ENABLED_euidaccess], [$gl_gnulib_enabled_euidaccess]) |
| 702 | AM_CONDITIONAL([gl_GNULIB_ENABLED_flexmember], [$gl_gnulib_enabled_flexmember]) | ||
| 690 | AM_CONDITIONAL([gl_GNULIB_ENABLED_getdtablesize], [$gl_gnulib_enabled_getdtablesize]) | 703 | AM_CONDITIONAL([gl_GNULIB_ENABLED_getdtablesize], [$gl_gnulib_enabled_getdtablesize]) |
| 691 | AM_CONDITIONAL([gl_GNULIB_ENABLED_getgroups], [$gl_gnulib_enabled_getgroups]) | 704 | AM_CONDITIONAL([gl_GNULIB_ENABLED_getgroups], [$gl_gnulib_enabled_getgroups]) |
| 692 | AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36]) | 705 | AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36]) |
| @@ -892,6 +905,7 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 892 | lib/filemode.h | 905 | lib/filemode.h |
| 893 | lib/filevercmp.c | 906 | lib/filevercmp.c |
| 894 | lib/filevercmp.h | 907 | lib/filevercmp.h |
| 908 | lib/flexmember.h | ||
| 895 | lib/fpending.c | 909 | lib/fpending.c |
| 896 | lib/fpending.h | 910 | lib/fpending.h |
| 897 | lib/fstatat.c | 911 | lib/fstatat.c |
| @@ -1013,6 +1027,7 @@ AC_DEFUN([gl_FILE_LIST], [ | |||
| 1013 | m4/fdatasync.m4 | 1027 | m4/fdatasync.m4 |
| 1014 | m4/fdopendir.m4 | 1028 | m4/fdopendir.m4 |
| 1015 | m4/filemode.m4 | 1029 | m4/filemode.m4 |
| 1030 | m4/flexmember.m4 | ||
| 1016 | m4/fpending.m4 | 1031 | m4/fpending.m4 |
| 1017 | m4/fstatat.m4 | 1032 | m4/fstatat.m4 |
| 1018 | m4/fsync.m4 | 1033 | m4/fsync.m4 |
diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index 90823b0acf4..89fd0ae38e3 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 | |||
| @@ -103,6 +103,7 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC], | |||
| 103 | 103 | ||
| 104 | gl_manywarn_set= | 104 | gl_manywarn_set= |
| 105 | for gl_manywarn_item in \ | 105 | for gl_manywarn_item in \ |
| 106 | -fno-common \ | ||
| 106 | -W \ | 107 | -W \ |
| 107 | -Wabi \ | 108 | -Wabi \ |
| 108 | -Waddress \ | 109 | -Waddress \ |