diff options
author | Guido van Rossum <guido@python.org> | 1998-12-21 18:35:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-21 18:35:49 (GMT) |
commit | 95864d35c68e9a3605fac8d1c459902150c18443 (patch) | |
tree | a8f92de7b1877c804562f2721825ca035be5e347 /Modules | |
parent | 885553e8d32fa28c6d5d444907c01c0c93384b8e (diff) | |
download | cpython-95864d35c68e9a3605fac8d1c459902150c18443.zip cpython-95864d35c68e9a3605fac8d1c459902150c18443.tar.gz cpython-95864d35c68e9a3605fac8d1c459902150c18443.tar.bz2 |
Add dummy variable to avoid optimizer bug on OS/2 -- patch by Jeff Rush.
(AMK: you should probably copy this into your patch set for pcre.)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/pypcre.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/pypcre.c b/Modules/pypcre.c index 96baa89..9c6939f 100644 --- a/Modules/pypcre.c +++ b/Modules/pypcre.c @@ -256,6 +256,7 @@ static BOOL set_start_bits(const uschar *code, uschar *start_bits) { register int c; +volatile int dummy; do { @@ -281,6 +282,7 @@ do case OP_BRAZERO: case OP_BRAMINZERO: if (!set_start_bits(++tcode, start_bits)) return FALSE; + dummy = 1; do tcode += (tcode[1] << 8) + tcode[2]; while (*tcode == OP_ALT); tcode += 3; try_next = TRUE; |