patch to make -d[MDNI] and -g3 work in cpplib
Dave Brolley
brolley@cygnus.com
Mon Apr 26 08:57:00 GMT 1999
This patch looks OK. If your tests passed, then go ahead an install it.
Dave
Zack Weinberg wrote:
> This patch fixes the preprocessor debugging switches -d[MDNI] and -g3
> to work in cpplib. It's tested to compile and to work for my purposes
> (using -dM to do standards conformance checks on system header
> files). I'm running a full bootstrap and check now.
>
> zw
>
> 1999-04-19 18:13 -0400 Zack Weinberg <zack@rabi.columbia.edu>
>
> * 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.
>
> Name: debug-sw.diff.gz
> debug-sw.diff.gz Type: GNU Zip Compressed Data (application/x-gzip)
> Encoding: x-uuencode
More information about the Gcc-patches
mailing list