From patchwork Thu Jan 9 18:27:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matheus Castanho X-Patchwork-Id: 1220573 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-108559-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=gaHiXQpX; 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 47tvjJ6gFWz9sPJ for ; Fri, 10 Jan 2020 05:27:16 +1100 (AEDT) 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=Qda Bxmi8Lwgy7JgEUaxG8z99EPLozzi2227PKaASlwyvnFChx/dQu+a6aT/+26maLur vC1500QhXrN957m3dIHA793FZ9XOAk3iCznkMcUixTnrncd1gfCybKDTE3nkA3vK KkQyvwJG7ACnAJLr4ausn8ltGqxZg6O5eCAsgmUo= 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=gaHiXQpXj/8/fohKSrssVL1IcgfCb5JWy1e9pbran guhAs7QuD1rBtchymM2DCi3q1I0KjVhpA+/4UvCnbHwCm63zaQV90qY48yHOxqon zhSAT5073Jxa7j9flUNP1UTbIIPjR/rBw3ol4w2990BcINOWbR0DLZ0vjplTIgG7 Ao= 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 Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 59128 invoked by uid 89); 9 Jan 2020 18:27:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 spammy=8956, SECTION, HContent-Transfer-Encoding:8bit 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 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;