Mercurial > hg > octave-kai > gnulib-hg
changeset 11114:ecdf003aa29f
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".
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Thu, 05 Feb 2009 19:57:35 +0100 |
parents | e1a7943b3c63 |
children | 3ac4b9408832 |
files | ChangeLog lib/regex_internal.h |
diffstat | 2 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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