diff options
author | Neil Booth <neil@gcc.gnu.org> | 2001-01-11 21:30:16 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-01-11 21:30:16 +0000 |
commit | 05e817242739f61b792b0730712e512ba25256b5 (patch) | |
tree | ccce935ca0e9dc123a10800c572cceabc8074b67 /gcc/cppmain.c | |
parent | 76d06edcf6c741801b51ecf31a48f262c8f85c52 (diff) | |
download | gcc-05e817242739f61b792b0730712e512ba25256b5.zip gcc-05e817242739f61b792b0730712e512ba25256b5.tar.gz gcc-05e817242739f61b792b0730712e512ba25256b5.tar.bz2 |
[multiple changes]
2001-01-11 Neil Booth <neil@daikokuya.demon.co.uk>
* cppinit.c (cpp_start_read): If -fpreprocessed, ignore
-D, -U and -A, and don't initialize the builtins.
* cppmain.c (cb_define, cb_undef): Unconditionally process
the callback.
* tradcpp.c (main): Fix typo.
2000-01-11 Mark Elbrecht <snowball3@bigfoot.com>
* cppfiles.c (cpp_included, find_include_file, _cpp_execute_include)
(read_name_map): Use IS_ABSOLUTE_PATH.
* tradcpp.c (get_filename): Likewise.
From-SVN: r38925
Diffstat (limited to 'gcc/cppmain.c')
-rw-r--r-- | gcc/cppmain.c | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/gcc/cppmain.c b/gcc/cppmain.c index 9e08bbe..dbb86ea 100644 --- a/gcc/cppmain.c +++ b/gcc/cppmain.c @@ -344,18 +344,15 @@ cb_define (pfile, node) cpp_reader *pfile; cpp_hashnode *node; { - if (pfile->done_initializing) - { - maybe_print_line (cpp_get_line (pfile)->output_line); - fprintf (print.outf, "#define %s", node->name); + maybe_print_line (cpp_get_line (pfile)->output_line); + fprintf (print.outf, "#define %s", node->name); - /* -dD command line option. */ - if (CPP_OPTION (pfile, dump_macros) == dump_definitions) - fputs ((const char *) cpp_macro_definition (pfile, node), print.outf); + /* -dD command line option. */ + if (CPP_OPTION (pfile, dump_macros) == dump_definitions) + fputs ((const char *) cpp_macro_definition (pfile, node), print.outf); - putc ('\n', print.outf); - print.lineno++; - } + putc ('\n', print.outf); + print.lineno++; } static void @@ -363,12 +360,9 @@ cb_undef (pfile, node) cpp_reader *pfile; cpp_hashnode *node; { - if (pfile->done_initializing) - { - maybe_print_line (cpp_get_line (pfile)->output_line); - fprintf (print.outf, "#undef %s\n", node->name); - print.lineno++; - } + maybe_print_line (cpp_get_line (pfile)->output_line); + fprintf (print.outf, "#undef %s\n", node->name); + print.lineno++; } static void |