From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82812 invoked by alias); 12 Oct 2016 08:11:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 82799 invoked by uid 89); 12 Oct 2016 08:11:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=hung, complained, heat, perceived X-HELO: mga11.intel.com Received: from mga11.intel.com (HELO mga11.intel.com) (192.55.52.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Oct 2016 08:11:48 +0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 12 Oct 2016 01:11:47 -0700 X-ExtLoop1: 1 Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by fmsmga004.fm.intel.com with ESMTP; 12 Oct 2016 01:11:46 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.19]) by IRSMSX101.ger.corp.intel.com ([163.33.3.153]) with mapi id 14.03.0248.002; Wed, 12 Oct 2016 09:11:45 +0100 From: "Metzger, Markus T" To: Eli Zaretskii , Pedro Alves CC: "brobecker@adacore.com" , "gdb-patches@sourceware.org" , "Jan Kratochvil (jan.kratochvil@redhat.com)" , Simon Marchi Subject: RE: [PATCH 1/3] Introduce gdb::unique_ptr Date: Wed, 12 Oct 2016 08:11:00 -0000 Message-ID: References: <1476117992-5689-1-git-send-email-palves@redhat.com> <1476117992-5689-2-git-send-email-palves@redhat.com> <20161011121639.GE3813@adacore.com> <68fc02cb-59bc-012c-d1be-b5ed2076d6a5@redhat.com> <20161011144741.GF3813@adacore.com> <83insydifw.fsf@gnu.org> <83a8eadds7.fsf@gnu.org> <4d49eb8f-5a0c-1e7e-d082-1a224179184f@redhat.com> <831szmd977.fsf@gnu.org> <83vawybol4.fsf@gnu.org> <6ba388f7-1696-42db-ae92-23df79e3ba11@redhat.com> <83oa2qaxe7.fsf@gnu.org> In-Reply-To: <83oa2qaxe7.fsf@gnu.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00289.txt.bz2 Sorry, I did not intend to start such a heated discussion. I think we got hung up on the perceived requirement of having to build your own GCC. The discussion got a bit too abstract and mentioning GCC 6 as the first to default to C++11 may have been confusing in the heat of the discussion as "GCC 6 defaults to C++11" may have been misread as "C++11 requires GCC 6". A simple and pragmatic solution would be a patch to add -std=3Dc++11 to GDB's compiler options. Pedro already mentioned it but I'm afraid it got lost. This documents the required language version and also prevents people from accidentally using C++14/17/?? features and not noticing it until one = of the buildbot builders complained. I don't think that requiring C++11 is entirely unreasonable and IMHO preferable to back-porting standard library features. Should I be wrong and C++11 is really not doable, I like Pedro's patch for giving the direction towards C++11. I would still add a compiler option to enforce C++03 for the above reasons. Regards, Markus. Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Christian Lamprechter Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928