diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-02 07:08:49 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-02 07:08:49 +0000 |
commit | e0a859f14e8db1f9145b0ac0db9551cc586509d8 (patch) | |
tree | 5449dc33f09873b105cb47551859fae03a5f1a89 /gcc/cppmain.c | |
parent | 9518dbb528f6ae4cccb6efccf983ff7628c6dd09 (diff) | |
download | gcc-e0a859f14e8db1f9145b0ac0db9551cc586509d8.tar.gz |
* cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,
cppspec.c: Do not use 'legal' or 'illegal' in error messages
and comments.
* cppmain.c (cb_define, cb_undef): Don't generate any output
if not done_initializing.
* cpplex.c (maybe_paste_with_next): When the token after a ##
is an omitted rest argument, only delete the token before it
if that token is a comma. Do not warn about bogus token
pastes for , ## rest_arg.
* cpp.texi: Update.
* cpp.1: Regenerate.
* gcc.dg/cpp/macsyntx.c: Fix error regexp.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35421 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppmain.c')
-rw-r--r-- | gcc/cppmain.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gcc/cppmain.c b/gcc/cppmain.c index 0af5442f3f8..6fc7c33639e 100644 --- a/gcc/cppmain.c +++ b/gcc/cppmain.c @@ -145,11 +145,14 @@ cb_define (pfile, hash) cpp_reader *pfile; cpp_hashnode *hash; { - cpp_printf (pfile, &parse_out, "#define %s", hash->name); - if (CPP_OPTION (pfile, debug_output) - || CPP_OPTION (pfile, dump_macros) == dump_definitions) - cpp_dump_definition (pfile, parse_out.outf, hash); - putc ('\n', parse_out.outf); + if (pfile->done_initializing) + { + cpp_printf (pfile, &parse_out, "#define %s", hash->name); + if (CPP_OPTION (pfile, debug_output) + || CPP_OPTION (pfile, dump_macros) == dump_definitions) + cpp_dump_definition (pfile, parse_out.outf, hash); + putc ('\n', parse_out.outf); + } } static void @@ -157,7 +160,8 @@ cb_undef (pfile, hash) cpp_reader *pfile; cpp_hashnode *hash; { - cpp_printf (pfile, &parse_out, "#undef %s\n", hash->name); + if (pfile->done_initializing) + cpp_printf (pfile, &parse_out, "#undef %s\n", hash->name); } static void |