From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53952 invoked by alias); 31 May 2019 18:26:31 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 53944 invoked by uid 89); 31 May 2019 18:26:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= 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 ESMTP; Fri, 31 May 2019 18:26:29 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 31FFE3082E21; Fri, 31 May 2019 18:26:28 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-56.rdu2.redhat.com [10.10.112.56]) by smtp.corp.redhat.com (Postfix) with ESMTP id 76AF060F9B; Fri, 31 May 2019 18:26:27 +0000 (UTC) Subject: Re: [PATCH] libiberty: Don't use VLAs if __STDC_NO_VLA__ is non-zero To: Michael Forney , gcc-patches@gcc.gnu.org References: <20190530205055.21215-1-mforney@mforney.org> From: Jeff Law Openpgp: preference=signencrypt Message-ID: <3b99dbdf-a46b-15d3-5e8d-5e5c25160cc9@redhat.com> Date: Fri, 31 May 2019 18:46:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190530205055.21215-1-mforney@mforney.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg02160.txt.bz2 On 5/30/19 2:50 PM, Michael Forney wrote: > VLAs are optional in C11, and an implementation that does not support > them will define __STDC_NO_VLA__ to 1. > > 2019-05-30 Michael Forney > > * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__ > is non-zero. THanks. I've installed this on the trunk. Though I must admit some surprise, what compiler are you using that defines STDC_NO_VLA? :-) jeff