From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103734 invoked by alias); 22 Aug 2016 12:58: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 103705 invoked by uid 89); 22 Aug 2016 12:58:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=mes, Hx-languages-length:1609, abstraction, interest X-HELO: mail-wm0-f41.google.com Received: from mail-wm0-f41.google.com (HELO mail-wm0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Aug 2016 12:58:20 +0000 Received: by mail-wm0-f41.google.com with SMTP id o80so142579099wme.1 for ; Mon, 22 Aug 2016 05:58:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Zr2BJWnnk7rCXVzxOosXn0QXujXmMZnTjS8gPZCUMvY=; b=MKX9P2OMvXBCDXMHWFzlXVzB4nBk050Qm+J8PM0LqVVAipjVk40gvAy9HZBcKsr+FF h4F9LyOjwOL4y8b7pz5m+GAcmm+SsIyOvGUhSUqrtPvlpVyWuGdEqjHTfzWECmN8scWF Bm19IinUiYTWkTi4unTqU6DbmA8GQFIvt5J5GuQRJLxgcye76l9LItguuR8GmV0aAqZE h+p37BZ7jRlNwu0HTZ38DCvtBudTUqxC3WaNp87UmxpJIO4swAkIZt57XG/0HGJi0NPq 12ocBDv2ECrpGz3APoSXhaUepnyqAtweYw6W5IMwF3cAqxKzt86vVdBlH4o00uosY7xE pf+w== X-Gm-Message-State: AEkoouuflVZRPLfWWxr/iZMyIE9pPtBtU/igjRlbKimRU8d5tZgcVJbZvB2s0r9qIG+5vg== X-Received: by 10.28.67.194 with SMTP id q185mr3699134wma.1.1471870697992; Mon, 22 Aug 2016 05:58:17 -0700 (PDT) Received: from [192.168.1.37] (193.red-83-53-180.dynamicip.rima-tde.net. [83.53.180.193]) by smtp.googlemail.com with ESMTPSA id v203sm21295261wmv.2.2016.08.22.05.58.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Aug 2016 05:58:17 -0700 (PDT) Subject: Re: C++11? (Re: protected alloca class for malloc fallback) To: Eric Gallager , Pedro Alves References: <57A3F57F.3050509@gmail.com> <57A4A5E8.90205@redhat.com> <1470420954.639.64.camel@t-online.de> <44EE0FB0-A8B9-43F9-BF58-C4D7D27DA944@gmail.com> <57A5B8BE.2000004@redhat.com> <941D179C-146F-4004-BECB-9FB066DDCC8D@gmail.com> <21bcbebe-28a8-58a7-68e8-af9abcb03dce@redhat.com> <20160808173939.GA13790@ball> <1470742429.639.196.camel@t-online.de> <20160809174139.GA18239@ball> <1470848609.639.405.camel@t-online.de> <619F310F-AED9-477F-9563-20EEB6C3E99F@comcast.net> Cc: Mike Stump , Oleg Endo , Trevor Saunders , Jeff Law , Richard Biener , Aldy Hernandez , Martin Sebor , gcc-patches From: =?UTF-8?B?TWFudWVsIEzDs3Blei1JYsOhw7Fleg==?= Message-ID: <6eea82fb-3c00-7b2d-2674-522af58a8d73@gmail.com> Date: Mon, 22 Aug 2016 12:58:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-08/txt/msg01531.txt.bz2 On 22/08/16 13:02, Eric Gallager wrote: > As a rookie programmer considering possibly contributing to GCC in the > future once I'm more confident in my abilities, switching to C++11 > would increase the barrier for me to contribute. I currently really > only know C, and I still have to learn C++ in general, much less all > the new features added in C++11. Also, I still occasionally bootstrap > with Apple's gcc 4.2.1, which doesn't have C++11 support. That being > said, I'd support taking steps to make it easier to optionally compile > gcc as C++11 for those that want to do so, such as replacing > -Wno-narrowing with -Wnarrowing in the warning flags that gcc uses. > Out of curiosity, I tried doing just that, and there were actually > fewer new unique warnings than I expected. I've attached a log of > them. If you are able to bootstrap GCC and run the regression testsuite, you have done 50% of what you need to submit your first patch: https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_easy_steps The implementation language is often a detail hidden by many layers of abstraction. It is more important to get to know those abstractions, know how to use a debugger and understand how various things fit together in gcc (FEs, MEs, back-ends, gimple, trees, RTL) than the implementation of those things. And the best way to learn is to start with a small project in your area of interest (https://gcc.gnu.org/bugzilla/buglist.cgi?keywords=easyhack&list_id=158576&resolution=---) and persevere. Cheers, Manuel.