* [tree-ssa] libmudflap/mf-hooks.c breaks bootstrap
@ 2003-05-20 10:12 Gerald Pfeifer
0 siblings, 0 replies; only message in thread
From: Gerald Pfeifer @ 2003-05-20 10:12 UTC (permalink / raw)
To: gcc; +Cc: Frank Ch. Eigler
In libmudflap/mf-hooks.c we have:
/* To avoid dynamic memory allocation, use static array.
This should be defined in <limits.h>. */
#ifndef PTHREAD_THREADS_MAX
#define PTHREAD_THREADS_MAX 1000
#endif
static struct pthread_info __mf_pthread_info[PTHREAD_THREADS_MAX];
This looks harmless, but it isn't, due to the following in
/usr/include/pthread.h on FreeBSD -STABLE:
#define PTHREAD_THREADS_MAX ULONG_MAX
which leads to
.../libmudflap/mf-hooks.c:933: error: size of array `__mf_pthread_info'
is too large
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.pfeifer.com/gerald/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-20 10:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-20 10:12 [tree-ssa] libmudflap/mf-hooks.c breaks bootstrap Gerald Pfeifer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).