aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-08-23 23:55:53 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-08-23 23:55:53 +0300
commit337577552dfabe64647be9415a41fd13f96bf0cf (patch)
tree040ee53c8114597fabe85496d4d4bc954728ec12
parent993362a337da4576050d4dd2812ffa753553ea88 (diff)
downloadegawk-337577552dfabe64647be9415a41fd13f96bf0cf.tar.gz
egawk-337577552dfabe64647be9415a41fd13f96bf0cf.tar.bz2
egawk-337577552dfabe64647be9415a41fd13f96bf0cf.zip
Bug fix for gcc -fno-inline -O2.
-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))