no preprocessing inside string literal
authorBruce Korb <bkorb@gnu.org>
Wed, 27 Jun 2001 03:49:50 +0000 (03:49 +0000)
committerBruce Korb <korbb@gcc.gnu.org>
Wed, 27 Jun 2001 03:49:50 +0000 (03:49 +0000)
From-SVN: r43604

gcc/ChangeLog
gcc/fixinc/fixincl.c

index 654328d..9181638 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-26  Bruce Korb  <bkorb@gnu.org>
+
+       * gcc/fixinc/fixincl.c(initialize): In very strict ANSI, you cannot
+       use preprocessing directives inside a string literal.  Fixed.
+
 2001-06-26  Jim Wilson  <wilson@redhat.com>
 
        * doc/tm.texi (MAX_LONG_DOUBLE_TYPE_SIZE, INTEL_EXTENDED_IEEE_FORMAT):
index 1f8b220..08d94f7 100644 (file)
@@ -220,12 +220,14 @@ initialize ( argc, argv )
   char** argv;
 {
   static const char var_not_found[] =
+#ifndef __STDC__
+    "fixincl ERROR:  %s environment variable not defined\n"
+#else
     "fixincl ERROR:  %s environment variable not defined\n"
-#ifdef __STDC__
     "each of these must be defined:\n"
-#define _ENV_(v,m,n,t) "\t" n "  - " t "\n"
-ENV_TABLE
-#undef _ENV_
+# define _ENV_(v,m,n,t) "\t" n "  - " t "\n"
+  ENV_TABLE
+# undef _ENV_
 #endif
     ;