From 2bf5212a9072b050b2a44c9695305c605e1b7dbe Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 5 Feb 2009 19:57:35 +0100 Subject: [PATCH] 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". --- ChangeLog | 7 +++++++ lib/regex_internal.h | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2d07367ad..084c626fd 100644 --- 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 index d3d58e8a0..859832f51 100644 --- a/lib/regex_internal.h +++ b/lib/regex_internal.h @@ -184,10 +184,6 @@ typedef unsigned long int bitset_word_t; # 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 -- 2.11.0