From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by sourceware.org (Postfix) with ESMTPS id 06D2B385F032 for ; Tue, 28 May 2024 08:20:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 06D2B385F032 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 06D2B385F032 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::633 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716884427; cv=none; b=Ld5kuS2zZmcTkWk0iWWbG3Qv4v+RL1mTz//dFpCTfkJJjF8ijSdoSlieuSRpcMRMfSAX5/3R+Y+3FR89Eg7lnLBCJaBYDaWnZdyPgxy5VcJ6xIu1baBXTqn54OlLgUuX0IdZVHjn1gMrY4Lzha8m/1Z00ZxL9BhkL16DZOHwnIY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716884427; c=relaxed/simple; bh=sc3A6S4pIEROD3gPg89E/HqPlYFXwklWzojyBDhBKsA=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=DAw1HYzRaXi9xQkA6F0bFWoX88IG32SOa0PKg95pYnAZzdBIIlTHb4/BP2ZYg8vrNRIGeEc56VBTLNQ2PyG1QZnGTvcPnBzmP3DLJbyjVfZVz4+UufuH8f5CIYzgtR5cbxSoGEcFj/QYlJJBYKqfwbU+B6N9tBUMlGo3MOUBcBg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a6269885572so652013166b.1 for ; Tue, 28 May 2024 01:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716884423; x=1717489223; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sc3A6S4pIEROD3gPg89E/HqPlYFXwklWzojyBDhBKsA=; b=Vd4rloK5liPF6xG7JOq3w25TmXYFs1qmqkhla0M1bNXlqcbNZsJnyVQuBF0OqRUAYW mCtJugRkZy2FuPAaayxuGGq0rtVlYLPJ0fVKPPXx6LH698Q9J5RBdebsartp8ly7h+SQ wgTDdipKge7b6PsjV4Mld6TsC0spwiRJAddodQpFC05e+89EB8Mbu+5G6i9BTXwvTGe2 SqSjis5olYALMs/X512q9ksVBheXOMLVYSDPoQMkhByYQ3My4yrIBvYgXh5EjxG/BFmC uMF0ePJYkKYvYufjJHrZ2E1jySXcgK5EqgOSAiZawvEaGJ3yrpNUGbjuudC+ngCUrVLU rC1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716884423; x=1717489223; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sc3A6S4pIEROD3gPg89E/HqPlYFXwklWzojyBDhBKsA=; b=IjRPyM5RZ8TKQE+vdjhM/8DjsfhleXrjlmIF8pajRzwy4aKMbiSnlZVp3djyYZ7+i5 2FWcarF92C6MBIbAgG7SOwfQyAmK6emwyFwCnHecmKMVDAVJFwiuUsInc1+zRV0MnBFm 7GNfX4NByi5DFjlTEhcq/+Xg3tGDqz50atILbjF4BDNSSK/RPG3JEDi7bedHuPM4pus1 ShNEk9Yld9nQ5tLNA3Tk4M0hrQ5f7q6EhaZKqTHGpDtABR2GUGj5hYcBzGT/1E4sgMqK NhFBRd5gIaUPSxx6frggBUYVutH2gF7byruCY8JQPOoAcVrNxmJHOtTff9ik7nn9ERWB 5Guw== X-Forwarded-Encrypted: i=1; AJvYcCXxSdDLkmGsM+xSKtWappNGlbdV2xM4G3cVhz4xE02Ct7tKLd3yqNRHbD9W/qtZTk9KTcAk8QJMxuMO+Vf2o+I= X-Gm-Message-State: AOJu0YxxCf3Pi0fqGUK7C3nzPGYZC1vrq8kD9HOuxlRCVesaSvdYf+1h vjhVy5tllBJqU4QhwPYbPASEt1wwOc/ubs0yZ1id/Hjf78U1MOgrx7zA5CrsP7fPjBuJaMel1sV wx1Via0STTj8OI7W/g2/zahs2HEg= X-Google-Smtp-Source: AGHT+IGXhVIiNMK2gniaYvlhGGOG6qfhGStsTymaM2qaVIHfKOoMnqS7iwld6ZQKv6NmXFpdCveNthGbUQQ5bb8NgkE= X-Received: by 2002:a17:906:f883:b0:a63:49d4:d5c5 with SMTP id a640c23a62f3a-a6349d4d60emr60186466b.23.1716884422371; Tue, 28 May 2024 01:20:22 -0700 (PDT) MIME-Version: 1.0 References: <00dc6e30-2e12-4b29-951b-d600097b38d0@gmail.com> <80bf1a5a-63a3-4da4-8721-88c760243add@cs.ucla.edu> <878qzv1r13.fsf@oldenburg.str.redhat.com> <3e852f76-9508-4c2e-bef3-7af8a10b626e@cs.ucla.edu> <25aee7da-bdd5-4a2a-b6ac-fa1a4aa11cc7@cs.ucla.edu> In-Reply-To: <25aee7da-bdd5-4a2a-b6ac-fa1a4aa11cc7@cs.ucla.edu> From: Jonathan Wakely Date: Tue, 28 May 2024 09:20:10 +0100 Message-ID: Subject: Re: configure adds -std=gnu++11 to CXX variable To: Paul Eggert Cc: Jakub Jelinek , Florian Weimer , Peter Johansson , Zack Weinberg , Autoconf , "gcc@gcc.gnu.org" Content-Type: multipart/alternative; boundary="0000000000001daed506197f4e0e" X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000001daed506197f4e0e Content-Type: text/plain; charset="UTF-8" On Tue, 28 May 2024, 02:51 Paul Eggert, wrote: > On 2024-05-27 12:18, Jakub Jelinek wrote: > > Maybe respect the carefully chosen compiler default (unless explicitly > > overridden in configure.ac)? > > Autoconf gave up on that idea long ago, as we had bad experiences with > compiler defaults being chosen for the convenience of distro maintainers > rather than for application developers and builders. Compilers were > still defaulting to K&R long after that made little sense. What has that got to do with C++ dialects? GCC defaults to C++17 in versions that have good, stable C++17 support. So does Clang these days. So what problem are you trying to solve for C++ here? It was a bit > like what we're still experiencing with _FILE_OFFSET_BITS defaulting to > 32 on x86 GNU/Linux. > > Using the compiler default puts you at the mercy of the distro. It's not > always wrong to do that - which is why developers and builders should > have an option - but it's not always right either. > I am not aware of any distro ever changing the default -std setting for g++ or clang++. Are you attempting to solve a non-problem, but introducing new ones? --0000000000001daed506197f4e0e--