tree-mudflap.c: Include cgraph.h.
authorZack Weinberg <zack@gcc.gnu.org>
Mon, 5 Jul 2004 18:12:47 +0000 (18:12 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 5 Jul 2004 18:12:47 +0000 (18:12 +0000)
commitc31b8e1b17c56b489399c674ed242c657dd8bf62
tree8cc207ca91278cefb1806c30086cba43c421cadc
parent5dbf8812f12761e10ca9b81be80f27c3ec256873
tree-mudflap.c: Include cgraph.h.

gcc:
* tree-mudflap.c: Include cgraph.h.
(mf_init_extern_trees): Rename to mudflap_init.  Export.
Rewrite to create synthetic declarations instead of looking
up declarations from mf-runtime.h.
(mf_make_builtin, mf_make_cache_struct_type): New functions.
(mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
Correct commentary.
(execute_mudflap_function_decls, mudflap_register_call):
Don't call mf_init_extern_trees.
(mudflap_finish_file): Use cgraph_build_static_cdtor.

* tree-mudflap.h: Update prototypes.
* c-mudflap.c: Delete file.
* c-common.c: Include tree-mudflap.h.
(c_common_nodes_and_builtins): Call mudflap_init if appropriate.
* Makefile.in: Remove all references to c-mudflap.o.
Update dependencies.
gcc/cp:
* cp-mudflap.c: Delete file.
* Makefile.in: Remove all references to cp-mudflap.o.
libmudflap:
* mf-runtime.h.in: Wrap declarations of struct __mf_cache,
__mf_lookup_cache, __mf_lc_mask, or __mf_lc_shift in
#ifndef _MUDFLAP.

From-SVN: r84126
gcc/ChangeLog
gcc/Makefile.in
gcc/c-common.c
gcc/c-mudflap.c [deleted file]
gcc/cp/ChangeLog
gcc/cp/Make-lang.in
gcc/cp/cp-mudflap.c [deleted file]
gcc/tree-mudflap.c
gcc/tree-mudflap.h
libmudflap/ChangeLog
libmudflap/mf-runtime.h.in