[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1.75 test suite failure with HP-UX C compiler and #endif
From: |
Akim Demaille |
Subject: |
Re: 1.75 test suite failure with HP-UX C compiler and #endif |
Date: |
14 Nov 2002 09:17:31 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
| > From: Albert Chin-A-Young <address@hidden>
| > Date: Wed, 13 Nov 2002 18:05:35 -0600
|
| > Removing the lines with solitary backslashes solves the problem.
|
| Thanks. I installed this patch.
|
| 2002-11-13 Paul Eggert <address@hidden>
|
| * tests/input.at (Torturing the Scanner): Remove lines containing
| solitary backslashes, as they tickle a bug in the HP-UX 11i C
| compiler.
|
| Index: input.at
| ===================================================================
| RCS file: /cvsroot/bison/bison/tests/input.at,v
| retrieving revision 1.17
| retrieving revision 1.18
| diff -p -u -r1.17 -r1.18
| --- input.at 12 Nov 2002 07:28:25 -0000 1.17
| +++ input.at 14 Nov 2002 00:26:45 -0000 1.18
| @@ -100,7 +100,6 @@ const char *foo = "So %{ and %} can be h
| #ifdef __STDC__
| /\
| * A comment with backslash-newlines in it. %{ %} *\
| -\
| /
|
| char str[] = "\\
| @@ -108,7 +107,6 @@ char str[] = "\\
| "";
|
| char apostrophe = '\\
| -\
| '\
| ';
| #endif
And I'm installing this one in Autoconf.
Index: ChangeLog
from Akim Demaille <address@hidden>
* doc/autoconf.texi (C Compiler): Solitary backslashes.
From Paul Eggert and Albert Chin-A-Young.
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.713
diff -u -u -r1.713 autoconf.texi
--- doc/autoconf.texi 12 Nov 2002 10:54:45 -0000 1.713
+++ doc/autoconf.texi 14 Nov 2002 08:16:52 -0000
@@ -4943,6 +4943,43 @@
@node C Compiler
@subsection C Compiler Characteristics
+The following macros provide ways to find and exercise a C Compiler.
+There are a few constructs that ought to be avoided, but do not deserve
+being checked for, since they can easily be worked around.
+
address@hidden @asis
address@hidden Don't use lines containing solitary backslashes
+They tickle a bug in the HP-UX C compiler (checked on HP-UX 10.20,
+11.00, and 11i). Running the compiler on the following source,
+
address@hidden
+#ifdef __STDC__
+/\
+* A comment with backslash-newlines in it. address@hidden address@hidden *\
+\
+/
+char str[] = "\\
+" A string with backslash-newlines in it address@hidden address@hidden \\
+"";
+char apostrophe = '\\
+\
+'\
+';
+#endif
address@hidden example
+
address@hidden
+yields
+
address@hidden
address@hidden: "foo.c", line 13: error 4048: Non-terminating comment at end of
file.
address@hidden: "foo.c", line 13: error 4033: Missing #endif at end of file.
address@hidden example
+
address@hidden
+Removing the lines with solitary backslashes solves the problem.
address@hidden table
+
@defmac AC_PROG_CC (@ovar{compiler-search-list})
@acindex PROG_CC
@ovindex CC
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: 1.75 test suite failure with HP-UX C compiler and #endif,
Akim Demaille <=