From patchwork Thu May 25 00:56:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 766747 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 3wY9nM1Kmvz9s82 for ; Thu, 25 May 2017 10:56:22 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="PgFmTUxJ"; 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=ddqgw/RStrBBUW8b3 EJQXzVb1K7l5fwTy8szDMbJ1Pv1ugOLA3DdwbFA8P9IxXCixLZB3vUJ8FqRsl3vJ VZ3wdReBgF/PfuWbrp6nqVIfGIydcAEeTNsokmH26ZhYe6yGbZ49I2WU0QiND/kN L/Sy5txIa6RwRFFSx3spFiNN2U= 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=5oRVlHuMOgZdUR+Hsl+1ZWg FyB8=; b=PgFmTUxJTCYTGQeEKotmuqdgOKxCDza4BhtiZXyGOPp35D9YGAGiBNp /mK+3EyhBhR8BrSiPiMOYIe5AbMC06XFTS7Ui73WLLlaFshGYgZv62dw3VMSRPen wxeiCqK2381YyqivXvhCRCscL2jqwzcyv78dqW8nzHhcqGWM/xQ4= Received: (qmail 94434 invoked by alias); 25 May 2017 00:56:06 -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 94136 invoked by uid 89); 25 May 2017 00:56:06 -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=H*M:ec03 X-HELO: mail-yb0-f182.google.com Received: from mail-yb0-f182.google.com (HELO mail-yb0-f182.google.com) (209.85.213.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 May 2017 00:56:04 +0000 Received: by mail-yb0-f182.google.com with SMTP id p143so49438492yba.2 for ; Wed, 24 May 2017 17:56:07 -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=Xc0YBci76KpqmP5pSnX+sX6ZO99DXX7N52/N2q1brlI=; b=aPuqED28LWjWu1W4bPOOqV8ljO9EIfnS9eoAI0pgh6o96xtXp8+DaG+AjukvY7g3Xz aPr9xP4fnwrRLyu0F/2pEgbihk3c0PDpMiy111OezxFcZMfU4ms6YV0jIlAzTRfdjc1d vpuiGJ82hT0z+KLtAQCjJnhum9CV++fKfXHopI9Z9vGbQaAqjxVO2vZFK57q79C/ELO3 faOUxMyxL6eF7dWVT5RTn9CHWsGom7GvyxQXxGaN7A2fRmJUtqK4uzRHXEMiMw1Ab6+c rdgxxvqZoURLDnuH66kXBJX70Zv7mVwzMfCaQVFc6VAz5PUJqd9+1BVZJjFWhFe+YWK+ 6ufw== X-Gm-Message-State: AODbwcDBGy2Yui9HX6+gr9oFbz2/vIMpfwX9+sds/9YvfHxTGtgSIO5q 9qRzm3RJ06AyWQ== X-Received: by 10.37.170.169 with SMTP id t38mr29766018ybi.105.1495673765922; Wed, 24 May 2017 17:56:05 -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 h1sm2322608ywk.57.2017.05.24.17.56.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2017 17:56:04 -0700 (PDT) Subject: Re: [libibery PATCH] Fix bootstrap From: Nathan Sidwell To: GCC Patches References: Message-ID: <024459fb-b511-ec03-7b02-365804fab108@acm.org> Date: Wed, 24 May 2017 20:56:02 -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: 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 nathan 2017-05-24 Nathan Sidwell * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T const casts to avoid warning. Index: c-common.c =================================================================== --- c-common.c (revision 248441) +++ c-common.c (working copy) @@ -5866,8 +5866,8 @@ check_builtin_function_arguments (locati int field_decl_cmp (const void *x_p, const void *y_p) { - const tree *const x = (const tree *const) x_p; - const tree *const y = (const tree *const) y_p; + const tree *const x = (const tree *) x_p; + const tree *const y = (const tree *) y_p; if (DECL_NAME (*x) == DECL_NAME (*y)) /* A nontype is "greater" than a type. */ @@ -5892,8 +5892,8 @@ pointer operator in resort_data. */ static int resort_field_decl_cmp (const void *x_p, const void *y_p) { - const tree *const x = (const tree *const) x_p; - const tree *const y = (const tree *const) y_p; + const tree *const x = (const tree *) x_p; + const tree *const y = (const tree *) y_p; if (DECL_NAME (*x) == DECL_NAME (*y)) /* A nontype is "greater" than a type. */