From patchwork Fri May 10 17:37:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dehao Chen X-Patchwork-Id: 243051 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 182792C00D6 for ; Sat, 11 May 2013 03:38:02 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; q=dns; s=default; b=DzLWJ5PKHbiycrTthDi7x2rFzcACntUBDsgiykqv4zR KodbAdZTGp5ss4AoLrgHBVks9QdEf7pcaluw+AenNpN8/GFHAbqj5QOY9v/PvBVz QMiUPnW8PEjfEozpl7B+CZEnqzNjRfQA/lS+xQfWk7w3gvcSUMhCejWJzOTcHnm0 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; s=default; bh=+QztpZPWp+jUNl2s3nT6OPLHfN0=; b=r4JPLmRvfg4KVQjX2 Z+uzvgTFptDNWF6afYRumdUHIxdEZ+6tNNBFwFEIh+hpRF568cx9yfc1DnEpK0vq 9DUIiJ5Cz+WDQnuyz9yviXxYxL4Nh6Ekv2pnP98TiL9p2K0+jdvT8Qh8E5DqiO9x 9/R1t8a1q6cqkfsV63/UNcxxs4= Received: (qmail 2974 invoked by alias); 10 May 2013 17:37:56 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 2964 invoked by uid 89); 10 May 2013 17:37:56 -0000 X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.1 Received: from mail-ee0-f54.google.com (HELO mail-ee0-f54.google.com) (74.125.83.54) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 10 May 2013 17:37:55 +0000 Received: by mail-ee0-f54.google.com with SMTP id e50so1690212eek.13 for ; Fri, 10 May 2013 10:37:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type:x-gm-message-state; bh=48h3/4OeobaSTom/w3DaKxf2er/2HA6rdr1Zv1hWbTA=; b=FCuL/t7fg/pQbfxqC4O58K41VVe3XlH1ppoGB62hQx3NRqKvppstzA8fFcJZXZLb64 90k3j3i1SYFEC1Ol0O/nO7qzPSfi1/cFEAA+EnpwwOh5fUqU+QvpbCeg/BPqcms6tGIH 63V83nB5VavU88JT+FytIPpH7ZtgTjl37tRxB0+SI868o/kIsgk0Wk/SB0HjDKt00aaA nzzlo3z20z8cX6P5utW7is90+xqwD0wLip3FxkiIwsPoN2hoF5p6gWEgIHLbvfq0z+QX 4NU+rWsbxP7RdJzve1oqQG0fkgqy6MfSXCl9qOOZjYPA12MUNlIm7tgcuPWULTBAbaUG /Xqw== MIME-Version: 1.0 X-Received: by 10.15.73.197 with SMTP id h45mr3234572eey.46.1368207473424; Fri, 10 May 2013 10:37:53 -0700 (PDT) Received: by 10.14.175.131 with HTTP; Fri, 10 May 2013 10:37:53 -0700 (PDT) Date: Fri, 10 May 2013 10:37:53 -0700 Message-ID: Subject: [Google] Suppress message when primary module entry cannot found From: Dehao Chen To: GCC Patches Cc: David Li X-Gm-Message-State: ALoCoQlY8qcz7sqzVqncNIJ3v+Q0ZPQiijN/prPLUzeO8ZafnxuWZd7sjaSdsBUU4bCU7RVA/iNV1Hr8CpJIfxPGpx8aG31KmDGkc9SNzXzdtkDC0A39FkaD9L951fhFR2poj1rnAW7GcQp61j6p+9m53EDqn9tyEeeaXc74H64zIitdqNFfF7G2hdTkKI+oK5i0XHHaq8lt 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);