projects
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1b2624
)
tg-allocalim
author
GNU Libc Maintainers
<debian-glibc@lists.debian.org>
Mon, 16 Jan 2017 17:43:37 +0000
(17:43 +0000)
committer
Aurelien Jarno
<aurel32@debian.org>
Mon, 16 Jan 2017 17:43:37 +0000
(17:43 +0000)
===================================================================
Gbp-Pq: Topic hurd-i386
Gbp-Pq: Name tg-allocalim.diff
sysdeps/pthread/allocalim.h
patch
|
blob
|
history
diff --git
a/sysdeps/pthread/allocalim.h
b/sysdeps/pthread/allocalim.h
index 076889463b000b61e713d9165dc8a061195bdd1b..3d43d2a005c0adcaf22c6154434afeb7ed9bae21 100644
(file)
--- a/
sysdeps/pthread/allocalim.h
+++ b/
sysdeps/pthread/allocalim.h
@@
-24,6
+24,9
@@
extern __always_inline
int
__libc_use_alloca (size_t size)
{
- return (__builtin_expect (size <= PTHREAD_STACK_MIN / 4, 1)
- || __builtin_expect (__libc_alloca_cutoff (size), 1));
+ return (
+#ifdef PTHREAD_STACK_MIN
+ __builtin_expect (size <= PTHREAD_STACK_MIN / 4, 1) ||
+#endif
+ __builtin_expect (__libc_alloca_cutoff (size), 1));
}