From patchwork Thu May 25 01:13:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 766749 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 3wYB9z2kTZz9ryr for ; Thu, 25 May 2017 11:14:13 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="TpBP/wTY"; 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 :subject:from:to:references:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=Kt6/LALihKKc5GMUU dkFxAQqaAcb1lC6HfuxDN7A3cAWV8Gdfhd2d99gD86gQc4dpIG1fQW23iHuDxAPw PSoQDpe7b59mhs/H594pb3FD3ZAlUipjDc9ozgLTW2ttYJ7Lz+CVO9/ZYq8vs1k9 apOZBKF8W8HqaXUmdLnM6MhO6o= 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 :subject:from:to:references:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=BxSPLDn2NOX92j0Cnj3j6Hq pVO0=; b=TpBP/wTYV9eCMrlWw0ep72U+0/4fc+RonN6lhOPzkuRhzq6OM+Suyz6 t0p68nuhTrV1fxGgm0erkI8TaTd+9xUeYO5DPaUDbzw0QkTTO7a3T6dEFYuUZV99 e27pIiTyH5ZK33q5n1f4olIcOPGk4Gp5/ZVRLgrWcdZe5cso1MnU= Received: (qmail 118950 invoked by alias); 25 May 2017 01:13:49 -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 118935 invoked by uid 89); 25 May 2017 01:13:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:865 X-HELO: mail-yw0-f181.google.com Received: from mail-yw0-f181.google.com (HELO mail-yw0-f181.google.com) (209.85.161.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 May 2017 01:13:47 +0000 Received: by mail-yw0-f181.google.com with SMTP id b68so97207820ywe.3 for ; Wed, 24 May 2017 18:13:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:references:message-id :date:user-agent:mime-version:in-reply-to:content-language; bh=9QZvC/DupTYZJte9NlzihAZWZ0/zif2inIgEfg6epIM=; b=toXPgH/Q6sOPN7pnsAS2ntZxcgFhgQTBgd62uW6mIa+XUvYmE9tbWJM9jZrSuSQ0ec rHclAeVDuqHqr/fboYyCFNSEtkPUETjzDzVHnkrBr3BaPVIi2u9y0ooDtpqlraYkA/ZX qyhWXhWSQn12IchkDAL03eopxtIJsKdWtWlljtr5zQobXQWaJaZrWU+D89aqbOIHWbn8 WT+QMmTnu0S9JZytL+oaZGBIXlXPHaeGcvn3TzPaU+EZ7MThXbCibWEAJWUWbt/d1Zk5 93b+Rr5ibdUiXYRIhb64na9A10DitJiSKYZz4IKvEonJy9W51K0TPQP8jOQD+k9RWJ1z Z5Pw== X-Gm-Message-State: AODbwcBjVFzLfUp0zdrqatu4zlFlZPzW41P37n+ql88NOI6iecGO1PUl msVQxXKGDLOT6g== X-Received: by 10.13.210.66 with SMTP id u63mr3983276ywd.285.1495674828995; Wed, 24 May 2017 18:13:48 -0700 (PDT) Received: from ?IPv6:2620:10d:c0a1:1102:b9b0:1beb:d21c:b3f4? ([2620:10d:c091:180::1:11db]) by smtp.googlemail.com with ESMTPSA id p126sm2579075ywf.30.2017.05.24.18.13.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2017 18:13:48 -0700 (PDT) Subject: Re: [libibery PATCH] Fix bootstrap From: Nathan Sidwell To: GCC Patches References: <024459fb-b511-ec03-7b02-365804fab108@acm.org> Message-ID: <17d610aa-170d-6244-34df-2c4d6d577bec@acm.org> Date: Wed, 24 May 2017 21:13:46 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <024459fb-b511-ec03-7b02-365804fab108@acm.org> On 05/24/2017 08:56 PM, Nathan Sidwell wrote: > On 05/24/2017 08:34 PM, Nathan Sidwell wrote: >> We now warn on casts to T const. Applied as obvious to fix bootstrap. > > And this fixes c-common.c And fix auto-profile.c nathan 2017-05-24 Nathan Sidwell * auto-profile.c (afdo_propagate): Adjust T const cast to avoid warning. Index: auto-profile.c =================================================================== --- auto-profile.c (revision 248441) +++ auto-profile.c (working copy) @@ -1377,7 +1377,7 @@ afdo_propagate (bb_set *annotated_bb, ed FOR_ALL_BB_FN (bb, cfun) { bb->count = ((basic_block)bb->aux)->count; - if (is_bb_annotated ((const basic_block)bb->aux, *annotated_bb)) + if (is_bb_annotated ((basic_block)bb->aux, *annotated_bb)) set_bb_annotated (bb, annotated_bb); }