This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to compile gcc


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 <rafael.espindola@gmail.com> 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
> 
> 
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]