diff options
author | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-27 03:49:50 +0000 |
---|---|---|
committer | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-27 03:49:50 +0000 |
commit | 4d4aa516b796aa5d07e30eaea48c768da5d0dadd (patch) | |
tree | 5afaad9d1246df46d32bd46e2e26a5aee8895bd4 /gcc | |
parent | 7ef7be1b29412017ce79cb0308a5cdc979fa62fe (diff) | |
download | gcc-4d4aa516b796aa5d07e30eaea48c768da5d0dadd.tar.gz |
no preprocessing inside string literal
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43604 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fixinc/fixincl.c | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 654328d1a42..9181638ec8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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): diff --git a/gcc/fixinc/fixincl.c b/gcc/fixinc/fixincl.c index 1f8b22067cd..08d94f7e34d 100644 --- a/gcc/fixinc/fixincl.c +++ b/gcc/fixinc/fixincl.c @@ -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 ; |