aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--regex_internal.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5fcf749c..e047cc33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-08-23 Arnold D. Robbins <arnold@skeeve.com>
+
+ * regex_internal.c (re_string_fetch_byte_case ): Remove
+ __attribute((pure)) since it causes failures with gcc -O2
+ -fno-inline. Thanks to Neil Cahill <ncahill_alt@yahoo.com>
+ for reporting the bug.
+
2011-08-10 John Haque <j.eh@mchsi.com>
BEGINFILE/ENDFILE related code redone.
diff --git a/regex_internal.c b/regex_internal.c
index 44bb3ecc..0c4f8f80 100644
--- a/regex_internal.c
+++ b/regex_internal.c
@@ -871,7 +871,7 @@ re_string_peek_byte_case (const re_string_t *pstr, int idx)
}
static unsigned char
-internal_function __attribute ((pure))
+internal_function
re_string_fetch_byte_case (re_string_t *pstr)
{
if (BE (!pstr->mbs_allocated, 1))