no preprocessing inside string literal

From-SVN: r43604
This commit is contained in:
Bruce Korb 2001-06-27 03:49:50 +00:00 committed by Bruce Korb
parent aaa2e8ef87
commit 84690a975d
2 changed files with 11 additions and 4 deletions

View 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):

View 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
;