projects
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
345f1b8
)
tg-allocalim
author
GNU Libc Maintainers
<debian-glibc@lists.debian.org>
Fri, 26 Jan 2018 22:35:29 +0000
(22:35 +0000)
committer
Aurelien Jarno
<aurel32@debian.org>
Fri, 26 Jan 2018 22:35:29 +0000
(22:35 +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 2621eb4d77fdf712605cc35cefb5fa713d12e792..39857ef1b315a14d31286ed8eb3d0a08e53c7d22 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));
}