[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison-1.75c, take 2: feedback
From: |
Paul Eggert |
Subject: |
Re: bison-1.75c, take 2: feedback |
Date: |
Thu, 14 Nov 2002 15:10:04 -0800 |
> From: "Nelson H. F. Beebe" <address@hidden>
> Date: Thu, 14 Nov 2002 07:31:59 -0700 (MST)
>
> On GNU/Linux x86 with the Portland Group compiler, pgcc, I also
> got these failures:
>
> 36: headers.at:71 FAILED near `headers.at:71'
> 37: headers.at:72 FAILED near `headers.at:72'
I checked in the following patch, which should fix those problems:
2002-11-14 Paul Eggert <address@hidden>
* tests/headers.at (AT_TEST_CPP_GUARD_H): Don't assume that
"$CC -E foo.h" is allowed, as this doesn't work with the Portland
Group compiler. Instead, use "$CC -E bar.c". Include the .h
file twice in the grammar, as an extra check.
Index: headers.at
===================================================================
RCS file: /cvsroot/bison/bison/tests/headers.at,v
retrieving revision 1.8
retrieving revision 1.9
diff -p -u -r1.8 -r1.9
--- headers.at 14 Nov 2002 09:58:01 -0000 1.8
+++ headers.at 14 Nov 2002 23:08:01 -0000 1.9
@@ -56,14 +56,19 @@ dirname=`AS_DIRNAME([$1])`
AS_MKDIR_P([$dirname])
AT_DATA_GRAMMAR([$1.y],
-[%%
+[%{
+#include "$1.h"
+%}
+%%
dummy:;
+%%
+#include "$1.h"
])
-AT_CHECK([bison --defines=$1.h $1.y])
+AT_CHECK([bison --defines=$1.h --output=y.tab.c $1.y])
# CPP should be happy with it.
-AT_CHECK([$CC -E $1.h], 0, [ignore])
+AT_CHECK([$CC -E y.tab.c], 0, [ignore])
AT_CLEANUP
])