diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2004-07-05 18:12:47 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-07-05 18:12:47 +0000 |
commit | c31b8e1b17c56b489399c674ed242c657dd8bf62 (patch) | |
tree | 8cc207ca91278cefb1806c30086cba43c421cadc /gcc/c-common.c | |
parent | 5dbf8812f12761e10ca9b81be80f27c3ec256873 (diff) | |
download | gcc-c31b8e1b17c56b489399c674ed242c657dd8bf62.zip gcc-c31b8e1b17c56b489399c674ed242c657dd8bf62.tar.gz gcc-c31b8e1b17c56b489399c674ed242c657dd8bf62.tar.bz2 |
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
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index fda7126..221e07c 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -44,6 +44,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "toplev.h" #include "tree-iterator.h" #include "hashtab.h" +#include "tree-mudflap.h" cpp_reader *parse_in; /* Declared in c-pragma.h. */ @@ -3122,6 +3123,8 @@ c_common_nodes_and_builtins (void) #undef DEF_BUILTIN targetm.init_builtins (); + if (flag_mudflap) + mudflap_init (); main_identifier_node = get_identifier ("main"); } |