[Python-checkins] python/dist/src/Modules _sre.c,2.92,2.93
niemeyer@users.sourceforge.net
niemeyer@users.sourceforge.net
Sat, 26 Apr 2003 23:58:56 -0700
- Previous message: [Python-checkins] python/dist/src/Modules bz2module.c,1.16,1.17
- Next message: [Python-checkins] python/dist/src/Lib/test test_bisect.py,1.7,1.8 test_bool.py,1.9,1.10 test_os.py,1.15,1.16 test_support.py,1.50,1.51
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv14584/Modules
Modified Files:
_sre.c
Log Message:
Applying patch #726869 by Andrew I MacIntyre, reducing in _sre.c the
recursion limit for certain setups of FreeBSD and OS/2.
Index: _sre.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_sre.c,v
retrieving revision 2.92
retrieving revision 2.93
diff -C2 -d -r2.92 -r2.93
*** _sre.c 22 Apr 2003 15:39:09 -0000 2.92
--- _sre.c 27 Apr 2003 06:58:54 -0000 2.93
***************
*** 73,77 ****
--- 73,86 ----
#define USE_RECURSION_LIMIT 7500
#else
+ #if defined(__GNUC__) && (__GNUC__ > 2) && \
+ (defined(__FreeBSD__) || defined(PYOS_OS2))
+ /* gcc 3.x, on FreeBSD and OS/2+EMX and at optimisation levels of
+ * -O3 (autoconf default) and -O2 (EMX port default), generates code
+ * for _sre that fails for the default recursion limit.
+ */
+ #define USE_RECURSION_LIMIT 7500
+ #else
#define USE_RECURSION_LIMIT 10000
+ #endif
#endif
#endif
- Previous message: [Python-checkins] python/dist/src/Modules bz2module.c,1.16,1.17
- Next message: [Python-checkins] python/dist/src/Lib/test test_bisect.py,1.7,1.8 test_bool.py,1.9,1.10 test_os.py,1.15,1.16 test_support.py,1.50,1.51
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]