From patchwork Thu May 25 00:34:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 766743 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 3wY9K552Trz9sDB for ; Thu, 25 May 2017 10:35:16 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="d6xt7tzh"; 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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=XaPuXL7VXYgg4AZDd1RSo2+4r4r4K3LGykhlp5BsYqGpiDFeVo N5BzjwDgvYQvjWTDeyo66DYNDrxLzIeTuDqZjXyILxoDvQwZKjRSd3LjhmjBo48B XYPBkHtbbgg7sEQb0ABabN3T//lu0uTDQk23A5elqcs2Y36hXrm57ZghI= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=881vitgrTLpsNTIJvBKCJevAheY=; b=d6xt7tzh8oQb8R3Mq2P4 fsFCGjiX8ofEl5fUf2S5bqn9kRGFeSMX250RgBEdw0kc5a2GQqRF5WRPWe/ZGKt4 r1ZLYT5Li/zfpNL7ougH02FfWePnZ8LNA5/wqEquAfBI/rvO9FcVRxafk6x8Lpm5 vkVgJBevTZZJS2SHCSfAQF4= Received: (qmail 21174 invoked by alias); 25 May 2017 00:35:00 -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 21162 invoked by uid 89); 25 May 2017 00:34:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy= 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:34:58 +0000 Received: by mail-yb0-f182.google.com with SMTP id 132so49375174ybq.1 for ; Wed, 24 May 2017 17:35:01 -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:to:from:subject:message-id:date :user-agent:mime-version:content-language; bh=3gD4Z5liI9g3WINGfLelL+u/q5YeJLtkcmh6g2PWwP8=; b=DxO4l2gnBpXOHLWIbdvftJovW98VKcAv1TPhSHNBDC82pemkVbc19bjwDdN/d61Sqn aVywDFlotUOx97O4V0jMKpM5Y+5ZzFUD3BYsPW5pu1kb9Iuma6ah/Q1N29Pf9RKez3OI 6wZVHyc0T0Pj1JXiwDaU06XNpAyYUCZctz3n+cKdExWM9YjtbqdpedXAMa54KbhLhYmj dySFZJCJKOrehLJar3EC2Caq70bFKtRhGA2ekROCv8gI9Pn0GoBSBySRE57G+3YsUtRy RqWmhW8CXq0PWg/P9O/9jvxgZfbWZ1+EgSZnw3Ccj3XsUuJsENp18PwFtRJ3EY7AgKHZ V8Ow== X-Gm-Message-State: AODbwcB+zvFH5YTJYdVthDV+Sw7fkQKCQnxkxW2CWVpLZToC0VOHyue+ RNb2O732LMeqqQ== X-Received: by 10.37.39.5 with SMTP id n5mr30312719ybn.81.1495672500049; Wed, 24 May 2017 17:35:00 -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 z194sm2539860ywa.24.2017.05.24.17.34.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2017 17:34:59 -0700 (PDT) To: GCC Patches From: Nathan Sidwell Subject: [libibery PATCH] Fix bootstrap Message-ID: Date: Wed, 24 May 2017 20:34:57 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 We now warn on casts to T const. Applied as obvious to fix bootstrap. nathan Index: ChangeLog =================================================================== --- ChangeLog (revision 248441) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2017-05-24 Nathan Sidwell + + * libiberty.h (ASTRDUP): Adjust cast to avoid warning. + 2017-05-19 Eli Zaretskii * environ.h: Add #ifndef guard. Index: libiberty.h =================================================================== --- libiberty.h (revision 248441) +++ libiberty.h (working copy) @@ -724,7 +724,7 @@ extern void *C_alloca (size_t) ATTRIBUTE # define ASTRDUP(X) \ (__extension__ ({ const char *const libiberty_optr = (X); \ const unsigned long libiberty_len = strlen (libiberty_optr) + 1; \ - char *const libiberty_nptr = (char *const) alloca (libiberty_len); \ + char *const libiberty_nptr = (char *) alloca (libiberty_len); \ (char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len); })) #else # define alloca(x) C_alloca(x)