From patchwork Thu Jul 21 07:51:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 651041 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 3rw5ZT0326z9sRZ for ; Thu, 21 Jul 2016 17:51:26 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=r322++XF; 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:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=UYZg8K2mVP9H+MVDrJjyiqKJSJ6VHn+IrCV/oa/pZbB YWb5UgBVNADGqdfEEtpbNWGdYkImfgN1zgq3cPnYXc8KKlsguP4NGjvajgYI+k3a FkkbpukDVVdiF7bEaN+T6oT1dWUNZwF05VA+oxdpWZWzQr46Xu+8qxuRcb30uK78 = 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:reply-to:mime-version:content-type; s=default; bh=0XtimRRmp/Oqw+AbsQLAxRMz/nM=; b=r322++XFK1LzFCJVx iQm7JoRwm6o0PrU6Qudn4Xp/weihPD22Cvq7Ga7Z3vIa6WarOmE4X0PjsflRrXS4 SkG0Vbl9ONuftUuRV4tafcnZLx0skmxm663YgL0P4GAnx26pSPT9SsBifTstNTu2 Cr2rLsT/Gr9gbEY9QeiMzbDbOc= Received: (qmail 124385 invoked by alias); 21 Jul 2016 07:51:17 -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 124283 invoked by uid 89); 21 Jul 2016 07:51:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=4312, 2016-07-21, 20160721 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 21 Jul 2016 07:51:15 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 605631555A for ; Thu, 21 Jul 2016 07:51:14 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-204-43.brq.redhat.com [10.40.204.43]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6L7pBCZ025740 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 21 Jul 2016 03:51:13 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id u6L7pAAD029377 for ; Thu, 21 Jul 2016 09:51:10 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id u6L7p9uh029376 for gcc-patches@gcc.gnu.org; Thu, 21 Jul 2016 09:51:09 +0200 Date: Thu, 21 Jul 2016 09:51:09 +0200 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] Fix up narrowing conversion in tree-object-size.c Message-ID: <20160721075109.GD7387@tucnak.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes Hi! The reporter mentioned in PR71941 a narrowing conversion in tree-object-size.c. Normally we build with -std=gnu++98 at least during bootstrap, so this doesn't show up, but I've committed following as obvious anyway: 2016-07-21 Jakub Jelinek * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1. Jakub --- gcc/tree-object-size.c.jj 2016-07-21 08:59:55.000000000 +0200 +++ gcc/tree-object-size.c 2016-07-21 09:43:29.288555197 +0200 @@ -43,7 +43,12 @@ struct object_size_info unsigned int *stack, *tos; }; -static const unsigned HOST_WIDE_INT unknown[4] = { -1, -1, 0, 0 }; +static const unsigned HOST_WIDE_INT unknown[4] = { + HOST_WIDE_INT_M1U, + HOST_WIDE_INT_M1U, + 0, + 0 +}; static tree compute_object_offset (const_tree, const_tree); static unsigned HOST_WIDE_INT addr_object_size (struct object_size_info *,