From patchwork Fri Nov 6 13:34:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 56117 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp1015424lbr; Fri, 6 Nov 2015 05:35:25 -0800 (PST) X-Received: by 10.69.15.130 with SMTP id fo2mr17966412pbd.158.1446816925142; Fri, 06 Nov 2015 05:35:25 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id fm3si228846pab.106.2015.11.06.05.35.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Nov 2015 05:35:25 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-412912-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-return-412912-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-412912-patch=linaro.org@gcc.gnu.org; dkim=pass header.i=@gcc.gnu.org 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:cc:subject:content-type; q=dns; s=default; b=c6jmZDBwPTkwvE0OoY4jdmKdxFIe2/jh5CQTnvn4eMO LYM5n4mGhz43ASU+YhgCmciNCbyrLk8RN5fJH0vOYjdLQ4Wk/eVQ3hBCmoI4o9bY J85edF5vSgR8LtGlabJjoa3VIGCW1Nth7a+YuM2maWjLNggfHgENt+94kk9px27g = 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:cc:subject:content-type; s=default; bh=k0LMvCfGbmAnRU6SENBgMM033l8=; b=l5RXcg37e1wo3GI3y o8x5u+0KoS6rPpocRXba+oygo7vcsOKx1YlFSH5/kWuLrjlXlDyL1b5+FYhFmJ9Y 7xw9SRnXMXGR6oIB7w8EPhpUu+2qsuOdH0RZRgv7b4RHDWI2dPvYsWdW+wdeWTdz Yiwru774JEd+JnVe6YJ1lCWUNs= Received: (qmail 95791 invoked by alias); 6 Nov 2015 13:35:13 -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 95781 invoked by uid 89); 6 Nov 2015 13:35:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Nov 2015 13:35:09 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-35-X9pUmIz4Q4miGUdgf3bytQ-1; Fri, 06 Nov 2015 13:34:59 +0000 Received: from [10.2.206.200] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Nov 2015 13:34:59 +0000 Message-ID: <563CAC82.8090801@arm.com> Date: Fri, 06 Nov 2015 13:34:58 +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 CC: Martin Sebor Subject: [PATCH][cp][committed] Fix bootstrap on arm due to print format warning X-MC-Unique: X9pUmIz4Q4miGUdgf3bytQ-1 X-IsSubscribed: yes Hi all, With Martins' patch at https://gcc.gnu.org/ml/gcc-patches/2015-11/msg00492.html I'm seeing an arm bootstrap error due to a warning in the print format addressed in this patchlet. bytes_avail is an unsigned HOST_WIDE_INT and so needs the %wu print format rather than %lu which may not be correct on all platforms. Bootstrap on arm-none-linux-gnueabihf now passes so I'm committing this to trunk as obvious. Thanks, Kyrill 2015-11-06 Kyrylo Tkachov * init.c (warn_placement_new_too_small): Use %wu format rather than %lu when printing bytes_avail. diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 7386499..337797c 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2447,7 +2447,7 @@ warn_placement_new_too_small (tree type, tree nelts, tree size, tree oper) "%<%T [%wu]%> and size %qwu in a region of type %qT " "and size %qwi" : "placement new constructing an object of type " - "%<%T [%lu]%> and size %qwu in a region of type %qT " + "%<%T [%wu]%> and size %qwu in a region of type %qT " "and size at most %qwu", type, tree_to_uhwi (nelts), bytes_need, TREE_TYPE (oper),