From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7976 invoked by alias); 19 Aug 2005 23:26:08 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 7916 invoked by uid 22791); 19 Aug 2005 23:26:04 -0000 Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.206) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 19 Aug 2005 23:26:04 +0000 Received: by wproxy.gmail.com with SMTP id i28so655146wra for ; Fri, 19 Aug 2005 16:26:02 -0700 (PDT) Received: by 10.54.100.20 with SMTP id x20mr2180656wrb; Fri, 19 Aug 2005 16:26:02 -0700 (PDT) Received: by 10.54.16.31 with HTTP; Fri, 19 Aug 2005 16:26:01 -0700 (PDT) Message-ID: <6767dbc9050819162630a9dfe1@mail.gmail.com> Date: Fri, 19 Aug 2005 23:26:00 -0000 From: Jiang Long To: gcc@gcc.gnu.org Subject: how to compile gcc Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-SW-Source: 2005-08/txt/msg00543.txt.bz2 Hello, I 'd like to dig into gcc internals, and would like to compile it with -g.= =20 I can't find any document on how to do that? I tried=20 make BOOT_CFLAGS=3D-g CFLAGS=3D-g,=20 but it still will add '-O2' later on.=20 Any documentation on how GCC is compiled? what are the stages of the compilation? Thanks, -Jiang