summaryrefslogtreecommitdiff
path: root/modules/glob
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-12-16 14:52:59 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-12-16 14:57:13 -0800
commit005973d694fea96d9e8b6a8148a71bd7f0a8d099 (patch)
tree603672c299975d1c16c3e8a1fa6101507780c8e6 /modules/glob
parent3044ae7f4310079527010ddd52be0e117ae28ca6 (diff)
downloadgnulib-005973d694fea96d9e8b6a8148a71bd7f0a8d099.tar.gz
builtin-expect: new module
Fix fnmatch to use it. Problem reported for z/OS by Daniel Richard G. * lib/fnmatch.c (__builtin_expect): * lib/glob.c (__builtin_expect): * lib/grantpt.c (__builtin_expect) [!_LIBC]: * lib/memmem.c (__builtin_expect) [!_LIBC]: * lib/scandir.c (__builtin_expect): * lib/strstr.c (__builtin_expect) [!_LIBC]: Remove macro; config.h now does this. * lib/gl_anytreehash_list1.h (add_to_bucket): * lib/regex_internal.h (BE): Assume __builtin_expect. * m4/builtin-expect.m4, modules/builtin-expect: New files. * modules/avltreehash-list, modules/fnmatch, modules/glob: * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list: * modules/scandir, modules/strstr-simple: Depend on builtin-expect.
Diffstat (limited to 'modules/glob')
-rw-r--r--modules/glob1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/glob b/modules/glob
index f32fe5f36f..29df7ab89b 100644
--- a/modules/glob
+++ b/modules/glob
@@ -15,6 +15,7 @@ snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
alloca [test -n "$GLOB_H"]
+builtin-expect [test -n "$GLOB_H"]
closedir [test -n "$GLOB_H"]
d-type [test -n "$GLOB_H"]
dirfd [test -n "$GLOB_H"]