fix prodded by cnuke@ for AIX with IBM xlC 7.0:

fool the compiler into not doing static bounds checking when we do
one-past-the-array-boundary pointer assignments for cases where the
only accesses are like (*--pointer); bump version
This commit is contained in:
tg
2008-10-10 21:30:43 +00:00
parent 94b7792718
commit 37934a07cf
5 changed files with 11 additions and 11 deletions

4
syn.c
View File

@@ -2,7 +2,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/syn.c,v 1.26 2008/08/02 17:45:12 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/syn.c,v 1.27 2008/10/10 21:30:43 tg Exp $");
struct nesting_state {
int start_token; /* token than began nesting (eg, FOR) */
@@ -163,7 +163,7 @@ synio(int cf)
iop->delim = yylval.cp;
if (*ident != 0) /* unquoted */
iop->flag |= IOEVAL;
if (herep >= &heres[HERES])
if (herep > &heres[HERES - 1])
yyerror("too many <<s\n");
*herep++ = iop;
} else