projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update MAINTAINERS.
[gcc.git]
/
libmudflap
/
mf-hooks1.c
diff --git
a/libmudflap/mf-hooks1.c
b/libmudflap/mf-hooks1.c
index e74c13afcced4e1f819920607c4cad32b11e645e..1e46a650947f759c7e16ebec64c587c750afae65 100644
(file)
--- a/
libmudflap/mf-hooks1.c
+++ b/
libmudflap/mf-hooks1.c
@@
-321,6
+321,11
@@
WRAPPER(void, free, void *buf)
void *
__mf_0fn_mmap (void *start, size_t l, int prot, int f, int fd, off_t off)
{
void *
__mf_0fn_mmap (void *start, size_t l, int prot, int f, int fd, off_t off)
{
+#if defined(__FreeBSD__)
+ if (f == 0x1000 && fd == -1 && prot == 0 && off == 0)
+ return 0;
+#endif /* Ignore red zone allocation request for initial thread's stack. */
+
return (void *) -1;
}
#endif
return (void *) -1;
}
#endif