From patchwork Wed Oct 2 14:44:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 1170715 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-510074-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="W/L0O/q1"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46jzSL0Bphz9sDB for ; Thu, 3 Oct 2019 00:44:48 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=V9eYEs+FF2z2wQHP/9A4Rh9Z/VEMMAkVi+NX/BV+OOn8oMiLd0uQb yuFJEhSVZOTw6RJLU0KgkL68abo5/DvRpOxoudwnn6/8JCsNjdeyhUPNospsY1fx fSKNFb4/MHDEOtC60D/bHfoDxCAQTpzopjA+7gJpQkvXnW+NLT7A6g= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=P+WAFGi0GECVlP93ggFJ4x2QpX4=; b=W/L0O/q1qwOuXaB/dweR CW6VjcYOu3L0/vDyk07p9kpyeIRltvB+kLYjf6wfJgloEMHMV/uIgdzi9h8FoY/w DnVmmCxC6VTOwEnpaLoL908WckOs9qmqnwvtsNzXr1jXHSI62cyoldc9+rCcJ1yT Zx51VZNKcTeYK85WO9RmqgA= Received: (qmail 98258 invoked by alias); 2 Oct 2019 14:44:40 -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 98246 invoked by uid 89); 2 Oct 2019 14:44:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Oct 2019 14:44:39 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id B9E582823A7; Wed, 2 Oct 2019 16:44:36 +0200 (CEST) Date: Wed, 2 Oct 2019 16:44:36 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Silecne bogus -Wmaybe-uninitialized warning Message-ID: <20191002144436.aub7amzau6dhqn4b@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Hi, this patch silences -Wmaybe-uninitialized warning when GCC is built with -finline-functions (which I am working to make part of -O2). Bootstrapped/regtested x86_64-linux, comitted as obvious. Honza * module.c (load_commons): Initialize flags to 0 to silecne -Wmaybe-uninitialized warning. (read_module): Likewise for n and comp_name. Index: module.c =================================================================== --- module.c (revision 276441) +++ module.c (working copy) @@ -4745,7 +4745,7 @@ load_commons (void) while (peek_atom () != ATOM_RPAREN) { - int flags; + int flags = 0; char* label; mio_lparen (); mio_internal_string (name); @@ -5243,8 +5243,8 @@ read_module (void) for (c = sym->components; c; c = c->next) { pointer_info *p; - const char *comp_name; - int n; + const char *comp_name = NULL; + int n = 0; mio_lparen (); /* component opening. */ mio_integer (&n);