From 3caee4a8ee44a285efab9a80cf765c05f3209eb5 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Mon, 26 Apr 1999 16:41:02 +0000 Subject: cpphash.c (dump_definition): New function. 1999-04-26 19:16 -0400 Zack Weinberg * cpphash.c (dump_definition): New function. * cpphash.h: Prototype it. * cpplib.c (handle_directive): Don't output anything here. Streamline. (pass_thru_directive): Take a length, not a pointer to the end. All callers changed. (do_define): Handle -dD, -dN, -g3 entirely here. Streamline. (do_include): Handle -dI here. (do_ident): Correct to match cccp. (do_pragma): Copy the pragma through here. (do_assert, do_unassert): Tidy. * cppinit.c (cpp_finish): If -dM was specified, walk the macro hash table and call dump_definition on all the entries. * cppmain.c: cpp_finish may produce output. From-SVN: r26659 --- gcc/cppmain.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/cppmain.c') diff --git a/gcc/cppmain.c b/gcc/cppmain.c index 5142cad..e7d82b5 100644 --- a/gcc/cppmain.c +++ b/gcc/cppmain.c @@ -94,6 +94,7 @@ main (argc, argv) } cpp_finish (&parse_in); + fwrite (parse_in.token_buffer, 1, CPP_WRITTEN (&parse_in), stdout); if (parse_in.errors) exit (FATAL_EXIT_CODE); -- cgit v1.1