From patchwork Fri Mar 3 16:27:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrill Tkachov X-Patchwork-Id: 735177 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vZZNL2y3dz9ryj for ; Sat, 4 Mar 2017 03:27:46 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="TZMCMHnP"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=mJvyL+dvvhYozeIKvin7rWzaUv0LJf0pOR0ftoFQ+jk/kS yQvF+6y1UlJtafUZFROkznjxU2dCBytCEnJ3GfH8Z6kDrl7w5nTo3QdG3X8Fmby3 qpXqNZwK1eplZIQmVMwB8c7nvpkfe0jDKSFw044Kfy/LSp4QpNYZCqe/1ssv0= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=fu5MrGEgL8l/Ok08W7TQFQngNOs=; b=TZMCMHnPODMiemE5fbas STFroe3l1UPfPoa4q/IChVL/fjd5DHoU6bGmquY5tAfPDMzBXih2OxigwHPhhXsY lpLtOj4md9HOjvwgdFytJPWHxswuaK8S0ksHrHMHy+qKozPVRXX2invUVloy/7eS y74DfbC1FWt9ZXAtOu9X51U= Received: (qmail 105868 invoked by alias); 3 Mar 2017 16:27:36 -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 105853 invoked by uid 89); 3 Mar 2017 16:27:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=lie, our, interest X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 03 Mar 2017 16:27:34 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CB9B91424 for ; Fri, 3 Mar 2017 08:27:32 -0800 (PST) Received: from [10.2.207.77] (e100706-lin.cambridge.arm.com [10.2.207.77]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 755F93F2E5 for ; Fri, 3 Mar 2017 08:27:32 -0800 (PST) Message-ID: <58B99972.9070906@foss.arm.com> Date: Fri, 03 Mar 2017 16:27:30 +0000 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches Subject: [PATCH][AArch64] Fix bootstrap due to wide_int .elt (0) uninit warning Hi all, This patch fixes the aarch64 bootstrap failure I've encountered. Richi suggested on IRC that we should be using .ulow () on the wide_int insetad of accessing elt (0) as that doesn't play well with the uninit analysis. Bootstrapped and tested on aarch64-none-linux-gnu. Committing to trunk in the interest of fixing the build 2017-03-03 Kyrylo Tkachov * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Use wide_int::ulow () instead of .elt (0). diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index ab1bdc0..714bb79 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -12496,7 +12496,7 @@ aarch64_float_const_representable_p (rtx x) /* If the low part of the mantissa has bits set we cannot represent the value. */ - if (w.elt (0) != 0) + if (w.ulow () != 0) return false; /* We have rejected the lower HOST_WIDE_INT, so update our understanding of how many bits lie in the mantissa and