]> granicus.if.org Git - python/commitdiff
Add dummy variable to avoid optimizer bug on OS/2 -- patch by Jeff Rush.
authorGuido van Rossum <guido@python.org>
Mon, 21 Dec 1998 18:35:49 +0000 (18:35 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 21 Dec 1998 18:35:49 +0000 (18:35 +0000)
(AMK: you should probably copy this into your patch set for pcre.)

Modules/pypcre.c

index 96baa89c03627facf62811d8713b99556829f668..9c6939fca14d91b6f5b02bef0af1d84ce159ffea 100644 (file)
@@ -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;