From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 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 dcvr.yhbt.net (Postfix) with ESMTPS id 8084D1F880 for ; Thu, 9 Jan 2020 18:27:13 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=Zro 6GqSigbIzQdEGq3spMeTbauYz2C85e9Gw2pzAx5dB6K8Lh7VcBVgzKLKd8r54pvl WdAad1XpNLEgFRfPNRSznQ+Y4cOUAlh20fXXcTge347cr1edsuOa1R/JzUubiflA CnNtAs0kbRBCRlCA+mI+2oTguP6aEpCtfqiTDN4M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=rgcE+B11b J8XAFDe+cZHAU5SbbA=; b=doSbowdqtwfQh9csk7ndy8N+VZk3VXPzmr1Vni1cI +nHazA2mvSbC/INuVlrwMTFGGC13brV1TXIpHJQ87vjXJ2L5fbfcjKtF6lTYlnke eQEC+T7C6+Afw58AcXOlWffPrTK7DNDUySoK1UhApksgp69f8wrOuO1bb1EzqtMS /0= Received: (qmail 59138 invoked by alias); 9 Jan 2020 18:27:10 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 59128 invoked by uid 89); 9 Jan 2020 18:27:10 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx0a-001b2d01.pphosted.com From: Matheus Castanho To: libc-alpha@sourceware.org Subject: [PATCH] Fix maybe-uninitialized error on powerpc Date: Thu, 9 Jan 2020 15:27:05 -0300 Message-Id: <20200109182705.5309-1-msc@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The build has been failing on powerpc64le-linux-gnu with GCC 10 due to a maybe-uninitialized error: ../sysdeps/ieee754/dbl-64/mpa.c:875:6: error: ‘w.e’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 875 | EY -= EX; | ^~ This commits adds proper initialization to avoid it. Tested on powerpc64le. --- sysdeps/ieee754/dbl-64/mpa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/ieee754/dbl-64/mpa.c b/sysdeps/ieee754/dbl-64/mpa.c index 3bb8bff90d..8ad0fc7535 100644 --- a/sysdeps/ieee754/dbl-64/mpa.c +++ b/sysdeps/ieee754/dbl-64/mpa.c @@ -895,6 +895,7 @@ SECTION __dvd (const mp_no *x, const mp_no *y, mp_no *z, int p) { mp_no w; + w.e = 0; if (X[0] == 0) Z[0] = 0; -- 2.21.1