From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95462 invoked by alias); 28 Mar 2017 20:41:33 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 95443 invoked by uid 89); 28 Mar 2017 20:41:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=opinions, 6th, difficulty, anniversary 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; Tue, 28 Mar 2017 20:41:30 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9ACC322BA02 for ; Tue, 28 Mar 2017 20:41:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9ACC322BA02 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dmalcolm@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 9ACC322BA02 Received: from ovpn-116-151.phx2.redhat.com (ovpn-116-151.phx2.redhat.com [10.3.116.151]) by smtp.corp.redhat.com (Postfix) with ESMTP id 442517DD68 for ; Tue, 28 Mar 2017 20:41:30 +0000 (UTC) Message-ID: <1490733689.11099.86.camel@redhat.com> Subject: A "newbies" guide to hacking on GCC (and plugins) From: David Malcolm To: gcc@gcc.gnu.org Date: Tue, 28 Mar 2017 20:41:00 -0000 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00176.txt.bz2 I'm a relative newcomer to GCC [1], so I thought it would be a good idea to try to capture some of the "gotchas" and similar information on hacking on GCC in the form of a short guide for new contributors, whilst the experience of learning it is still fresh in my mind. The guide can be read here: https://dmalcolm.fedorapeople.org/gcc/newbies-guide/index.html I've mostly tried to cover specific things I ran into that caused me difficulty, so it may be eclectic. (All opinions are my own) I hope that this is useful. Dave [1] did we miss GCC's 30th anniversary? https://gcc.gnu.org/wiki/History says the first release was 1987-03 -22. As for myself, Thursday appears to be the 6th anniversary of me starting the gcc-python-plugin and hence on poking at GCC's internals - I'm not sure if 6 years means I still count as a newcomer, but 30 years is geological epochs in software terms :)