# HG changeset patch # User Jim Meyering # Date 1233860255 -3600 # Node ID ecdf003aa29f7c767ce8464ccec21d8cb795f1c1 # Parent e1a7943b3c63f9f70eb20522ac90136c1211caf2 regex: avoid compilation failure with upcoming gcc-4.4 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this: "... error: integer overflow in preprocessor expression". diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-02-07 Jim Meyering + + regex: avoid compilation failure with upcoming gcc-4.4 + * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7 + [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this: + "... error: integer overflow in preprocessor expression". + 2009-02-05 Ben Pfaff Fix link errors on Windows when close module is used. diff --git a/lib/regex_internal.h b/lib/regex_internal.h --- a/lib/regex_internal.h +++ b/lib/regex_internal.h @@ -184,10 +184,6 @@ # if BITSET_WORD_BITS <= SBC_MAX # error "Invalid SBC_MAX" # endif -#elif BITSET_WORD_MAX == (0xffffffff + 2) * 0xffffffff -/* Work around a bug in 64-bit PGC (before version 6.1-2), where the - preprocessor mishandles large unsigned values as if they were signed. */ -# define BITSET_WORD_BITS 64 #else # error "Add case for new bitset_word_t size" #endif