mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* tests/Makefile.am (maintainer-check-g++): Remove bogus
test for valgrind; valgrind is independent of g++. (maintainer-check-posix): Add _POSIX2_VERSION=200112, to check for compatibility with POSIX 1003.1-2001 (if running coreutils). * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Port to stricter C++. Use a destructor, so that we can expand the stack. Change YYSTYPE to char * so that we can free it. Cast result of malloc.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,8 +1,14 @@
|
|||||||
2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
|
2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
|
Fix problems reported by twlevo@xs4all.nl.
|
||||||
* tests/Makefile.am (maintainer-check-g++): Fix a stray
|
* tests/Makefile.am (maintainer-check-g++): Fix a stray
|
||||||
$(GXX) that escaped the renaming of GXX to CXX. Problem
|
$(GXX) that escaped the renaming of GXX to CXX. Remove bogus
|
||||||
reported by twlevo@xs4all.nl.
|
test for valgrind; valgrind is independent of g++.
|
||||||
|
(maintainer-check-posix): Add _POSIX2_VERSION=200112, to check
|
||||||
|
for compatibility with POSIX 1003.1-2001 (if running coreutils).
|
||||||
|
* tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Port to stricter C++.
|
||||||
|
Use a destructor, so that we can expand the stack. Change
|
||||||
|
YYSTYPE to char * so that we can free it. Cast result of malloc.
|
||||||
|
|
||||||
2005-07-13 Paul Hilfinger <hilfingr@CS.Berkeley.EDU>
|
2005-07-13 Paul Hilfinger <hilfingr@CS.Berkeley.EDU>
|
||||||
|
|
||||||
|
|||||||
@@ -79,15 +79,11 @@ installcheck-local:
|
|||||||
# Be real mean with it.
|
# Be real mean with it.
|
||||||
.PHONY: maintainer-check-g++
|
.PHONY: maintainer-check-g++
|
||||||
maintainer-check-g++: $(TESTSUITE)
|
maintainer-check-g++: $(TESTSUITE)
|
||||||
if test -n "$(VALGRIND)"; then \
|
$(TESTSUITE) CC='$(CXX)'
|
||||||
$(TESTSUITE) CC='$(CXX)'; \
|
|
||||||
else \
|
|
||||||
true; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
.PHONY: maintainer-check-posix
|
.PHONY: maintainer-check-posix
|
||||||
maintainer-check-posix: $(TESTSUITE)
|
maintainer-check-posix: $(TESTSUITE)
|
||||||
$(TESTSUITE) POSIXLY_CORRECT=1
|
$(TESTSUITE) POSIXLY_CORRECT=1 _POSIX2_VERSION=200112
|
||||||
|
|
||||||
.PHONY: maintainer-check-valgrind
|
.PHONY: maintainer-check-valgrind
|
||||||
maintainer-check-valgrind: $(TESTSUITE)
|
maintainer-check-valgrind: $(TESTSUITE)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Checking GLR Parsing. -*- Autotest -*-
|
# Checking GLR Parsing. -*- Autotest -*-
|
||||||
# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
|
# Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -34,7 +34,7 @@ $1
|
|||||||
|
|
||||||
%{
|
%{
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define YYSTYPE char const *
|
#define YYSTYPE char *
|
||||||
]m4_bmatch([$2], [stmtMerge],
|
]m4_bmatch([$2], [stmtMerge],
|
||||||
[ static YYSTYPE stmtMerge (YYSTYPE x0, YYSTYPE x1);])[
|
[ static YYSTYPE stmtMerge (YYSTYPE x0, YYSTYPE x1);])[
|
||||||
#define YYINITDEPTH 10
|
#define YYINITDEPTH 10
|
||||||
@@ -65,6 +65,8 @@ $1
|
|||||||
|
|
||||||
%glr-parser
|
%glr-parser
|
||||||
|
|
||||||
|
%destructor { free ($$); } TYPENAME ID
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
|
||||||
prog :
|
prog :
|
||||||
@@ -171,7 +173,7 @@ yylex (LEX_PARAMETERS)
|
|||||||
ungetc (c, stdin);
|
ungetc (c, stdin);
|
||||||
buffer[i++] = 0;
|
buffer[i++] = 0;
|
||||||
tok = isupper ((unsigned char) buffer[0]) ? TYPENAME : ID;
|
tok = isupper ((unsigned char) buffer[0]) ? TYPENAME : ID;
|
||||||
yylval = strcpy (malloc (i), buffer);
|
yylval = strcpy ((char *) malloc (i), buffer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -209,7 +211,7 @@ format (char const *form, ...)
|
|||||||
va_start (args, form);
|
va_start (args, form);
|
||||||
vsprintf (buffer, form, args);
|
vsprintf (buffer, form, args);
|
||||||
va_end (args);
|
va_end (args);
|
||||||
return strcpy (malloc (strlen (buffer) + 1), buffer);
|
return strcpy ((char *) malloc (strlen (buffer) + 1), buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
]]
|
]]
|
||||||
|
|||||||
Reference in New Issue
Block a user