regex: avoid compilation failure with upcoming gcc-4.4
authorJim Meyering <meyering@redhat.com>
Thu, 5 Feb 2009 18:57:35 +0000 (19:57 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 7 Feb 2009 10:04:22 +0000 (11:04 +0100)
* 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
lib/regex_internal.h

index 2d07367adfee189afcfa19d49bb0b6c696477ab6..084c626fd6b8e3e06f3d98bf88f5d97f321010d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-07  Jim Meyering  <meyering@redhat.com>
+
+       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  <blp@gnu.org>
 
        Fix link errors on Windows when close module is used.
index d3d58e8a045e5847c7845bb583d4ccdc25194ad1..859832f513f5dabb44d2856a006d800b9b061105 100644 (file)
@@ -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