portability: fix test suite for GCC 4.5's new #error message.

Reported by Tys Lefering at
<http://lists.gnu.org/archive/html/bug-bison/2010-03/msg00030.html>.
* NEWS (2.4.3): Mention.
* tests/synclines.at (AT_TEST_SYNCLINE): Implement.
(cherry picked from commit 18493762be)
This commit is contained in:
Joel E. Denny
2010-03-31 12:46:53 -04:00
parent 10a697de00
commit 4ad3921d3b
3 changed files with 13 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
2010-03-31 Joel E. Denny <jdenny@ces.clemson.edu>
portability: fix test suite for GCC 4.5's new #error message.
Reported by Tys Lefering at
<http://lists.gnu.org/archive/html/bug-bison/2010-03/msg00030.html>.
* NEWS (2.4.3): Mention.
* tests/synclines.at (AT_TEST_SYNCLINE): Implement.
2010-03-30 Akim Demaille <demaille@gostai.com> 2010-03-30 Akim Demaille <demaille@gostai.com>
fix comments. fix comments.

2
NEWS
View File

@@ -241,6 +241,8 @@ Bison News
** Problems with spawning M4 on at least FreeBSD 8 and FreeBSD 9 have ** Problems with spawning M4 on at least FreeBSD 8 and FreeBSD 9 have
been fixed. been fixed.
** Failures in the test suite for GCC 4.5 have been fixed.
* Changes in version 2.4.2 (2010-03-20): * Changes in version 2.4.2 (2010-03-20):
** Some portability problems that resulted in failures and livelocks ** Some portability problems that resulted in failures and livelocks

View File

@@ -90,7 +90,9 @@ AT_CHECK([[test "`cat stdout`" = 'syncline.c:1: @%:@error "1"' || exit 77]])
AT_DATA([[input.y]], [$2]) AT_DATA([[input.y]], [$2])
AT_BISON_CHECK([-o input.c input.y]) AT_BISON_CHECK([-o input.c input.y])
AT_SYNCLINES_COMPILE([input.c]) AT_SYNCLINES_COMPILE([input.c])
AT_CHECK([cat stdout], 0, [$3]) # GCC 4.5 tells you the function within which #error appears, but
# previous versions of gcc do not.
AT_CHECK([grep -v ': In function ' stdout], 0, [$3])
AT_CLEANUP AT_CLEANUP
]) ])