If you are objective is to debug gcc, then all the necessary setup is
already done...Check this documentation
 http://gcc.gnu.org/wiki/DebuggingGCC.

dz

On 8/20/05, Rafael Ávila de Espíndola <[EMAIL PROTECTED]> wrote:
> On Friday 19 August 2005 20:26, Jiang Long wrote:
> > Hello,
> >
> > I 'd like to dig into gcc internals, and would like to compile it with -g.
> >
> > I can't find any document on how to do that? I tried
> >
> > make BOOT_CFLAGS=-g CFLAGS=-g,
> >
> > but it still will add '-O2' later on.
> >
> > Any documentation on how GCC is compiled? what are the stages of the
> > compilation?
> yes,
> http://gcc.gnu.org/install/configure.html
> look at --enable-checking
> and
> http://gcc.gnu.org/install/build.html
> There are more cflags...
> 
> The gcc/Makefile.in is also a good reference :)
> 
> > Thanks,
> >
> > -Jiang
> 
> 
> Rafael
> 
> 
>

Reply via email to