File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,24 @@ static char copyright[] =
75
75
Win64 (MS_WIN64), Linux64 (__LP64__), Monterey (64-bit AIX) (_LP64) */
76
76
/* FIXME: maybe the limit should be 40000 / sizeof(void*) ? */
77
77
#define USE_RECURSION_LIMIT 7500
78
+ #else
79
+ #if defined(__GNUC__ ) && defined(WITH_THREAD ) && defined(__FreeBSD__ )
80
+ /* the pthreads library on FreeBSD has a fixed 1MB stack size for the
81
+ * initial (or "primary") thread, which is insufficient for the default
82
+ * recursion limit. gcc 3.x at the default optimisation
83
+ * level (-O3) uses stack space more aggressively than gcc 2.95.
84
+ */
85
+ #if (__GNUC__ > 2 )
86
+ #define USE_RECURSION_LIMIT 6500
87
+ #else
88
+ #define USE_RECURSION_LIMIT 7500
89
+ #endif
90
+
78
91
#else
79
92
#define USE_RECURSION_LIMIT 10000
80
93
#endif
81
94
#endif
95
+ #endif
82
96
83
97
/* enables fast searching */
84
98
#define USE_FAST_SEARCH
You can’t perform that action at this time.
0 commit comments