From ccab73c3b7c38e3c7ac7e3a0b37f063856575953 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 13 Oct 2004 18:18:18 +0000 Subject: toplev.c (compile_file): Call mudflap_finish_file from here ... 2004-10-13 Frank Ch. Eigler * toplev.c (compile_file): Call mudflap_finish_file from here ... * c-decl.c (c_write_global_declarations): ... instead of here ... * cp/decl.c (cp_finish_file): ... and here. * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message. From-SVN: r88995 --- gcc/toplev.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index eaeeeca..31dbbe1 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -80,6 +80,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "coverage.h" #include "value-prof.h" #include "alloc-pool.h" +#include "tree-mudflap.h" #if defined (DWARF2_UNWIND_INFO) || defined (DWARF2_DEBUGGING_INFO) #include "dwarf2out.h" @@ -1004,6 +1005,10 @@ compile_file (void) functions in this compilation unit were deferred. */ coverage_finish (); + /* Likewise for mudflap static object registrations. */ + if (flag_mudflap) + mudflap_finish_file (); + /* Write out any pending weak symbol declarations. */ weak_finish (); -- cgit v1.1