From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id 20B403858D35 for ; Tue, 16 Apr 2024 22:56:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 20B403858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 20B403858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713308218; cv=none; b=I9v7u+GNqv3mZ9LOZM7zIf/+UgR0ySOereBqTgkqfPHKpjO7uUgM5FkiskXIUTSYtRMJ714MKmHgLs+gRz4pE8QSnsKvS6QdLFfegWTNo5NkvntSIb35yHouMBOC5Ue79PN3LXxqbhy3j14WzyQ0T82m9avCBwxlZ7aGzMvu2f8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713308218; c=relaxed/simple; bh=jeyao+hjsq+BkYeNuf1+HDc90PrKXHFU4/EJ/LGZJZ0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=cAeh58ILMcJ5OGOxlrd+fuqfYu15IsCOQbUp+kFZUqCvDVjpM3JL9oP34z66fYpNJXFAIRgAfH/yAFHleF36Ho58EizmWQsE9BctqgyTFTyWG376fufAyrkRZjxnYgnlUCjRR84F9WagNUOzyEGrGIFKQBEGrHg0/GTrjwxAet0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-5002a.ext.cloudfilter.net ([10.0.29.215]) by cmsmtp with ESMTPS id wnmZrDNjLtf2QwrjSrLa4e; Tue, 16 Apr 2024 22:56:55 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id wrjRrCSClr1IfwrjSrp6Yc; Tue, 16 Apr 2024 22:56:54 +0000 X-Authority-Analysis: v=2.4 cv=BawT0at2 c=1 sm=1 tr=0 ts=661f0236 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=raytVjVEu-sA:10 a=Qbun_eYptAEA:10 a=-65Pcs5fKKd8Or9n5HcA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TYLTxkoDzrymVxm8eiFtGavsrQ8TeYR/qaWHXCZADEQ=; b=Qa5D0yraoKUvsRlvQvw0erXa/Q 7rRGyDThIGvjUykiSDrOud0XOJs5YbOEDvAJ7QzR+5rTeJE8s85iDhZkdubk9iR+WAyl+n+ln+45V oRMANKwfDeZukpUs9auz8G8b3; Received: from 97-122-82-115.hlrn.qwest.net ([97.122.82.115]:48768 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rwrjR-001zhD-1T; Tue, 16 Apr 2024 16:56:53 -0600 From: Tom Tromey To: Simon Marchi Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH] gdbsupport, gdbserver, gdb: use -Wno-vla-cxx-extension In-Reply-To: (Simon Marchi's message of "Mon, 15 Apr 2024 12:48:03 -0400") References: <20240412175200.829114-1-simon.marchi@efficios.com> <87cyqq38b4.fsf@tromey.com> X-Attribution: Tom Date: Tue, 16 Apr 2024 16:56:52 -0600 Message-ID: <8734rkhq6j.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.82.115 X-Source-L: No X-Exim-ID: 1rwrjR-001zhD-1T X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-82-115.hlrn.qwest.net (prentzel) [97.122.82.115]:48768 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfIwa6MS+ZphmrcLsGymlZTJQXeRK2jzVlieuG0QjrWyIa9qtsSY0PoYYBv1HJRavcdsNtTlZ3Je7NX53+b3Jul5/gmFlpiuBCeXJDIZ+T8iTZ0emlyMu uRLs9kdCqr+tf8mdJpVCycr6bxnePDpe5my94gL32zAbML3Oy9wOBwdkeerL410OmVVeo4QBzD+ujNP6pgI522OchlJvcxcxp0w= X-Spam-Status: No, score=-3015.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Simon> Here's the list of those I see in my build (x86-64 Linux all targets): Simon> I think we should have a vector type with "small vector optimization", Simon> it would be great to replace these uses of VLAs. I might give it a shot Simon> at some point (or maybe someone else wants to try?). But until then, I Simon> think it makes sense to silence the warning. I suppose I'm ok with that. On the whole I'd prefer we remove VLAs (since they aren't standard) and alloca (since it is bad). I don't really care if we have a small vector unless it's proven we need it. Tom