diff options
| author | Andrea Corallo | 2020-08-09 15:03:23 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-08-09 15:03:23 +0200 |
| commit | 12a982d9789052d8e85efcacb4b311f4876c882a (patch) | |
| tree | a452a8e888c6ee9c85d6a487359b7a1c0c9fa15b /lib | |
| parent | 80d7f710f2fab902e46aa3fddb8e1c1795420af3 (diff) | |
| parent | 8e82baf5a730ff542118ddba5b76afdc1db643f6 (diff) | |
| download | emacs-12a982d9789052d8e85efcacb4b311f4876c882a.tar.gz emacs-12a982d9789052d8e85efcacb4b311f4876c882a.zip | |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/c++defs.h | 4 | ||||
| -rw-r--r-- | lib/cdefs.h | 2 | ||||
| -rw-r--r-- | lib/count-leading-zeros.h | 3 | ||||
| -rw-r--r-- | lib/count-trailing-zeros.h | 3 | ||||
| -rw-r--r-- | lib/gnulib.mk.in | 13 |
5 files changed, 17 insertions, 8 deletions
diff --git a/lib/c++defs.h b/lib/c++defs.h index 3e6aaabc9ce..182c2b3a88d 100644 --- a/lib/c++defs.h +++ b/lib/c++defs.h | |||
| @@ -268,7 +268,7 @@ | |||
| 268 | _GL_CXXALIASWARN_2 (func, namespace) | 268 | _GL_CXXALIASWARN_2 (func, namespace) |
| 269 | /* To work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>, | 269 | /* To work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>, |
| 270 | we enable the warning only when not optimizing. */ | 270 | we enable the warning only when not optimizing. */ |
| 271 | # if !__OPTIMIZE__ | 271 | # if !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__) |
| 272 | # define _GL_CXXALIASWARN_2(func,namespace) \ | 272 | # define _GL_CXXALIASWARN_2(func,namespace) \ |
| 273 | _GL_WARN_ON_USE (func, \ | 273 | _GL_WARN_ON_USE (func, \ |
| 274 | "The symbol ::" #func " refers to the system function. " \ | 274 | "The symbol ::" #func " refers to the system function. " \ |
| @@ -296,7 +296,7 @@ | |||
| 296 | _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) | 296 | _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace) |
| 297 | /* To work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>, | 297 | /* To work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>, |
| 298 | we enable the warning only when not optimizing. */ | 298 | we enable the warning only when not optimizing. */ |
| 299 | # if !__OPTIMIZE__ | 299 | # if !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__) |
| 300 | # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ | 300 | # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \ |
| 301 | _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ | 301 | _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \ |
| 302 | "The symbol ::" #func " refers to the system function. " \ | 302 | "The symbol ::" #func " refers to the system function. " \ |
diff --git a/lib/cdefs.h b/lib/cdefs.h index d8e4a000333..f6c447ad377 100644 --- a/lib/cdefs.h +++ b/lib/cdefs.h | |||
| @@ -401,7 +401,7 @@ | |||
| 401 | # endif | 401 | # endif |
| 402 | #endif | 402 | #endif |
| 403 | 403 | ||
| 404 | #if __GNUC__ >= 3 | 404 | #if (__GNUC__ >= 3) || (__clang_major__ >= 4) |
| 405 | # define __glibc_unlikely(cond) __builtin_expect ((cond), 0) | 405 | # define __glibc_unlikely(cond) __builtin_expect ((cond), 0) |
| 406 | # define __glibc_likely(cond) __builtin_expect ((cond), 1) | 406 | # define __glibc_likely(cond) __builtin_expect ((cond), 1) |
| 407 | #else | 407 | #else |
diff --git a/lib/count-leading-zeros.h b/lib/count-leading-zeros.h index 7e88c8cb9d0..7cf605a5f64 100644 --- a/lib/count-leading-zeros.h +++ b/lib/count-leading-zeros.h | |||
| @@ -38,7 +38,8 @@ extern "C" { | |||
| 38 | expand to code that computes the number of leading zeros of the local | 38 | expand to code that computes the number of leading zeros of the local |
| 39 | variable 'x' of type TYPE (an unsigned integer type) and return it | 39 | variable 'x' of type TYPE (an unsigned integer type) and return it |
| 40 | from the current function. */ | 40 | from the current function. */ |
| 41 | #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | 41 | #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) \ |
| 42 | || (__clang_major__ >= 4) | ||
| 42 | # define COUNT_LEADING_ZEROS(BUILTIN, MSC_BUILTIN, TYPE) \ | 43 | # define COUNT_LEADING_ZEROS(BUILTIN, MSC_BUILTIN, TYPE) \ |
| 43 | return x ? BUILTIN (x) : CHAR_BIT * sizeof x; | 44 | return x ? BUILTIN (x) : CHAR_BIT * sizeof x; |
| 44 | #elif _MSC_VER | 45 | #elif _MSC_VER |
diff --git a/lib/count-trailing-zeros.h b/lib/count-trailing-zeros.h index 1eb5fb919f4..727b21dcc56 100644 --- a/lib/count-trailing-zeros.h +++ b/lib/count-trailing-zeros.h | |||
| @@ -38,7 +38,8 @@ extern "C" { | |||
| 38 | expand to code that computes the number of trailing zeros of the local | 38 | expand to code that computes the number of trailing zeros of the local |
| 39 | variable 'x' of type TYPE (an unsigned integer type) and return it | 39 | variable 'x' of type TYPE (an unsigned integer type) and return it |
| 40 | from the current function. */ | 40 | from the current function. */ |
| 41 | #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | 41 | #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) \ |
| 42 | || (__clang_major__ >= 4) | ||
| 42 | # define COUNT_TRAILING_ZEROS(BUILTIN, MSC_BUILTIN, TYPE) \ | 43 | # define COUNT_TRAILING_ZEROS(BUILTIN, MSC_BUILTIN, TYPE) \ |
| 43 | return x ? BUILTIN (x) : CHAR_BIT * sizeof x; | 44 | return x ? BUILTIN (x) : CHAR_BIT * sizeof x; |
| 44 | #elif _MSC_VER | 45 | #elif _MSC_VER |
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index 4dc180d2e33..92d0621c61a 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in | |||
| @@ -246,9 +246,10 @@ GL_GENERATE_ALLOCA_H = @GL_GENERATE_ALLOCA_H@ | |||
| 246 | GL_GENERATE_BYTESWAP_H = @GL_GENERATE_BYTESWAP_H@ | 246 | GL_GENERATE_BYTESWAP_H = @GL_GENERATE_BYTESWAP_H@ |
| 247 | GL_GENERATE_ERRNO_H = @GL_GENERATE_ERRNO_H@ | 247 | GL_GENERATE_ERRNO_H = @GL_GENERATE_ERRNO_H@ |
| 248 | GL_GENERATE_EXECINFO_H = @GL_GENERATE_EXECINFO_H@ | 248 | GL_GENERATE_EXECINFO_H = @GL_GENERATE_EXECINFO_H@ |
| 249 | GL_GENERATE_GMP_H = @GL_GENERATE_GMP_H@ | 249 | GL_GENERATE_GMP_GMP_H = @GL_GENERATE_GMP_GMP_H@ |
| 250 | GL_GENERATE_IEEE754_H = @GL_GENERATE_IEEE754_H@ | 250 | GL_GENERATE_IEEE754_H = @GL_GENERATE_IEEE754_H@ |
| 251 | GL_GENERATE_LIMITS_H = @GL_GENERATE_LIMITS_H@ | 251 | GL_GENERATE_LIMITS_H = @GL_GENERATE_LIMITS_H@ |
| 252 | GL_GENERATE_MINI_GMP_H = @GL_GENERATE_MINI_GMP_H@ | ||
| 252 | GL_GENERATE_STDALIGN_H = @GL_GENERATE_STDALIGN_H@ | 253 | GL_GENERATE_STDALIGN_H = @GL_GENERATE_STDALIGN_H@ |
| 253 | GL_GENERATE_STDDEF_H = @GL_GENERATE_STDDEF_H@ | 254 | GL_GENERATE_STDDEF_H = @GL_GENERATE_STDDEF_H@ |
| 254 | GL_GENERATE_STDINT_H = @GL_GENERATE_STDINT_H@ | 255 | GL_GENERATE_STDINT_H = @GL_GENERATE_STDINT_H@ |
| @@ -1085,7 +1086,6 @@ gamedir = @gamedir@ | |||
| 1085 | gamegroup = @gamegroup@ | 1086 | gamegroup = @gamegroup@ |
| 1086 | gameuser = @gameuser@ | 1087 | gameuser = @gameuser@ |
| 1087 | gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7 = @gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7@ | 1088 | gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7 = @gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7@ |
| 1088 | gl_GNULIB_ENABLED_2049e887c7e5308faad27b3f894bb8c9 = @gl_GNULIB_ENABLED_2049e887c7e5308faad27b3f894bb8c9@ | ||
| 1089 | gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b = @gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b@ | 1089 | gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b = @gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b@ |
| 1090 | gl_GNULIB_ENABLED_5264294aa0a5557541b53c8c741f7f31 = @gl_GNULIB_ENABLED_5264294aa0a5557541b53c8c741f7f31@ | 1090 | gl_GNULIB_ENABLED_5264294aa0a5557541b53c8c741f7f31 = @gl_GNULIB_ENABLED_5264294aa0a5557541b53c8c741f7f31@ |
| 1091 | gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c = @gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c@ | 1091 | gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c = @gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c@ |
| @@ -2021,15 +2021,22 @@ ifeq (,$(OMIT_GNULIB_MODULE_libgmp)) | |||
| 2021 | 2021 | ||
| 2022 | BUILT_SOURCES += $(GMP_H) | 2022 | BUILT_SOURCES += $(GMP_H) |
| 2023 | 2023 | ||
| 2024 | ifneq (,$(GL_GENERATE_MINI_GMP_H)) | ||
| 2024 | # Build gmp.h as a wrapper for mini-gmp.h when using mini-gmp. | 2025 | # Build gmp.h as a wrapper for mini-gmp.h when using mini-gmp. |
| 2025 | ifneq (,$(GL_GENERATE_GMP_H)) | ||
| 2026 | gmp.h: $(top_builddir)/config.status | 2026 | gmp.h: $(top_builddir)/config.status |
| 2027 | echo '#include "mini-gmp.h"' >$@-t | 2027 | echo '#include "mini-gmp.h"' >$@-t |
| 2028 | mv $@-t $@ | 2028 | mv $@-t $@ |
| 2029 | else | 2029 | else |
| 2030 | ifneq (,$(GL_GENERATE_GMP_GMP_H)) | ||
| 2031 | # Build gmp.h as a wrapper for gmp/gmp.h. | ||
| 2032 | gmp.h: $(top_builddir)/config.status | ||
| 2033 | echo '#include <gmp/gmp.h>' >$@-t | ||
| 2034 | mv $@-t $@ | ||
| 2035 | else | ||
| 2030 | gmp.h: $(top_builddir)/config.status | 2036 | gmp.h: $(top_builddir)/config.status |
| 2031 | rm -f $@ | 2037 | rm -f $@ |
| 2032 | endif | 2038 | endif |
| 2039 | endif | ||
| 2033 | MOSTLYCLEANFILES += gmp.h gmp.h-t | 2040 | MOSTLYCLEANFILES += gmp.h gmp.h-t |
| 2034 | 2041 | ||
| 2035 | EXTRA_DIST += mini-gmp-gnulib.c mini-gmp.c mini-gmp.h | 2042 | EXTRA_DIST += mini-gmp-gnulib.c mini-gmp.c mini-gmp.h |