public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Google] Suppress message when primary module entry cannot found
@ 2013-05-10 17:37 Dehao Chen
  2013-05-10 17:47 ` Teresa Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: Dehao Chen @ 2013-05-10 17:37 UTC (permalink / raw)
  To: GCC Patches; +Cc: David Li

Now we don't store the module info if the module is not exported or
has any aux module (to compress the profile data size). Thus it's
normal that a primary module entry cannot be found. This patch
suppresses the messages printed when the primary module is not found.

Bootstrapped and passed regression test.

OK for google branch?

Thanks,
Dehao

Index: auto-profile.c
===================================================================
--- auto-profile.c (revision 198751)
+++ auto-profile.c (working copy)
@@ -497,10 +497,7 @@ read_aux_modules (void)
   module.name = xstrdup (in_fnames[0]);
   entry = (struct afdo_module *) htab_find (module_htab, &module);
   if (!entry)
-    {
-      inform (0, "primary module %s cannot be found.", in_fnames[0]);
-      return;
-    }
+    return;
   module_infos = XCNEWVEC (struct gcov_module_info *,
    entry->num_aux_modules + 1);
   afdo_add_module (module_infos, entry, true);

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-05-10 18:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-10 17:37 [Google] Suppress message when primary module entry cannot found Dehao Chen
2013-05-10 17:47 ` Teresa Johnson
2013-05-10 18:00   ` Dehao Chen
2013-05-10 18:03     ` Xinliang David Li
2013-05-10 18:37       ` Dehao Chen
2013-05-10 18:32     ` Teresa Johnson
2013-05-10 18:42       ` Dehao Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).