This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] libmudflap/mf-hooks.c breaks bootstrap
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: gcc at gcc dot gnu dot org
- Cc: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Tue, 20 May 2003 11:58:10 +0200 (CEST)
- Subject: [tree-ssa] libmudflap/mf-hooks.c breaks bootstrap
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/