Re: [PATCH] Add missing variable_size GTY annotations (was Re: on how to compile gcc-4.6 correctly?)

2010-09-14 Thread Dennis, CHENG Renquan
On Tue, Sep 14, 2010 at 9:17 PM, Laurynas Biveinis wrote: > I have reproduced it and the patch below fixes the issue, sorry for > breaking things. Dennis, could you see if it works for you? > > When gcc-core tarball is used without other frontends, gengtype does > not get to see that lang_type is

[PATCH] Add missing variable_size GTY annotations (was Re: on how to compile gcc-4.6 correctly?)

2010-09-14 Thread Laurynas Biveinis
I have reproduced it and the patch below fixes the issue, sorry for breaking things. Dennis, could you see if it works for you? When gcc-core tarball is used without other frontends, gengtype does not get to see that lang_type is in fact variable_size and when the frontends are present, their vari

Re: on how to compile gcc-4.6 correctly?

2010-09-14 Thread Kai Ruottu
14.9.2010 11:29, Dennis, CHENG Renquan kirjoitti: For anyone could succeed compiling gcc-4.6, could you paste a correct ggc_alloc_cleared_lang_type macro ? just run this grep command under your build directory, gcc-4.6-build$ grep -RsInw ggc_alloc_cleared_lang_type gcc/ gcc/gtype-desc.h:2451:#

Re: on how to compile gcc-4.6 correctly?

2010-09-14 Thread Dennis, CHENG Renquan
For anyone could succeed compiling gcc-4.6, could you paste a correct ggc_alloc_cleared_lang_type macro ? just run this grep command under your build directory, gcc-4.6-build$ grep -RsInw ggc_alloc_cleared_lang_type gcc/ gcc/gtype-desc.h:2451:#define ggc_alloc_cleared_lang_type() ((struct lang_ty

Re: on how to compile gcc-4.6 correctly?

2010-09-13 Thread Dennis, CHENG Renquan
On Mon, Sep 13, 2010 at 9:32 PM, Laurynas Biveinis wrote: > Thanks. I assume that you pass --enable-languages=c to configure? No, just a very simple configure and make command: ../path/to/gcc-4.6-build$ time { ../gcc-4.6-20100911/configure --prefix=/usr --disable-nls --with-system-zlib && make -

Re: on how to compile gcc-4.6 correctly?

2010-09-13 Thread Laurynas Biveinis
2010/9/13 Dennis, CHENG Renquan : > On Mon, Sep 13, 2010 at 8:16 PM, Laurynas Biveinis > wrote: >> I am the author of how these macros are generated, but somehow I have >> missed this thread initially. Could you send me off-list that >> gtype-desc.h file? > > The problematic gtype-desc.h has been

Re: on how to compile gcc-4.6 correctly?

2010-09-13 Thread Dennis, CHENG Renquan
On Mon, Sep 13, 2010 at 8:16 PM, Laurynas Biveinis wrote: > I am the author of how these macros are generated, but somehow I have > missed this thread initially. Could you send me off-list that > gtype-desc.h file? The problematic gtype-desc.h has been sent to Laurynas separately, I was compiling

Re: on how to compile gcc-4.6 correctly?

2010-09-13 Thread Laurynas Biveinis
> renq...@flyer-1-1:~/src/gcc-4.6-build$ grep -RsInw > ggc_alloc_cleared_lang_type gcc/ > gcc/gtype-desc.h:2451:#define ggc_alloc_cleared_lang_type() ((struct > lang_type *)(ggc_internal_cleared_alloc_stat (sizeof (struct > lang_type) MEM_STAT_INFO))) > > this definition just doesn't accept any arg

Re: on how to compile gcc-4.6 correctly?

2010-09-13 Thread Kai Ruottu
13.9.2010 10:39, Dennis, CHENG Renquan kirjoitti: So maybe the Gentoo distro has some problem... No, I've tried compiling gcc-4.6-20100911 on ubuntu 10.04, the same problem also happened; and I also found that macro was defined in a generated header file, in the gcc build directory; renq...@

Re: on how to compile gcc-4.6 correctly?

2010-09-13 Thread Dennis, CHENG Renquan
On Mon, Sep 6, 2010 at 10:51 PM, Kai Ruottu wrote: > This seems to be defined in a header generated during the build > into the $BUILD/gcc : > > [r...@localhost gcc]# grep ggc_alloc_cleared_lang_type *.h > gtype-desc.h:#define ggc_alloc_cleared_lang_type_u() ((union lang_type_u > *)(ggc_internal_c

Re: on how to compile gcc-4.6 correctly?

2010-09-06 Thread Kai Ruottu
6.9.2010 6:17, Dennis kirjoitti: I'm using gentoo distribution (including gmp/mpfr/mpc) that could compile gcc-4.5.0, 4.5.1, and many snapshots correctly, including the recent one gcc-4.5-20100902, but when I tried to compile gcc-4.6, any snapshot version, even recent gcc-4.6-20100904, it a

Re: on how to compile gcc-4.6 correctly?

2010-09-06 Thread Justin Mattock
On Mon, Sep 6, 2010 at 2:54 AM, Cheng Rk wrote: > --- On Mon, 6/9/10, Justin P. Mattock wrote: >> From: Justin P. Mattock >> Subject: Re: on how to compile gcc-4.6 correctly? >> To: "Dennis" >> Cc: gcc@gcc.gnu.org, crq...@ymail.com >> Date: Monday,

Re: on how to compile gcc-4.6 correctly?

2010-09-06 Thread Cheng Rk
--- On Mon, 6/9/10, Justin P. Mattock wrote: > From: Justin P. Mattock > Subject: Re: on how to compile gcc-4.6 correctly? > To: "Dennis" > Cc: gcc@gcc.gnu.org, crq...@ymail.com > Date: Monday, 6 September, 2010, 9:18 AM > On 09/05/2010 08:17 PM, Dennis [...] >

Re: on how to compile gcc-4.6 correctly?

2010-09-06 Thread Justin P. Mattock
On 09/05/2010 08:17 PM, Dennis wrote: Hi, all, I'm using gentoo distribution (including gmp/mpfr/mpc) that could compile gcc-4.5.0, 4.5.1, and many snapshots correctly, including the recent one gcc-4.5-20100902, but when I tried to compile gcc-4.6, any snapshot version, even recent gcc-4.6-2

on how to compile gcc-4.6 correctly?

2010-09-05 Thread Dennis
Hi, all, I'm using gentoo distribution (including gmp/mpfr/mpc) that could compile gcc-4.5.0, 4.5.1, and many snapshots correctly, including the recent one gcc-4.5-20100902, but when I tried to compile gcc-4.6, any snapshot version, even recent gcc-4.6-20100904, it always failed, the recent one

Would you like to give me advice about how to compile gcc? __addd3f link error.

2007-10-27 Thread J.C. Pizarro
On Sat 27 Oct 2007, "L.Yan" <[EMAIL PROTECTED]>: > Dear all, > > I want to build the source of gcc and make '-msoft-float' available. But > I don't know how to build the source code. I just do it as the following > steps: > > 1. download the source code, gcc-4.1.2.tar.gz, from the mirror site; > 2.

Re: Would you like to give me advice about how to compile gcc?

2007-10-27 Thread Jonathan Wakely
On 27/10/2007, L.Yan <[EMAIL PROTECTED]> wrote: > > I want to build the source of gcc and make '-msoft-float' available. But > I don't know how to build the source code. I just do it as the following > steps: Hi Peter, this list is for discussing the development of gcc. To get help building and u

Would you like to give me advice about how to compile gcc?

2007-10-27 Thread L.Yan
Dear all, I want to build the source of gcc and make '-msoft-float' available. But I don't know how to build the source code. I just do it as the following steps: 1. download the source code, gcc-4.1.2.tar.gz, from the mirror site; 2. tar -xzf gcc-4.1.2.tar.gz; 3. ./configure --prefix=/home/user/

Re: how to compile gcc

2005-08-21 Thread Yao qi
From: drizzle drizzle <[EMAIL PROTECTED]> To: Rafael Ávila de Espíndola <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: how to compile gcc Date: Sat, 20 Aug 2005 09:48:56 -0400 If you are objective is to debug gcc, then all the necessary setup is already done...Check this d

Re: how to compile gcc

2005-08-21 Thread Yao qi
From: drizzle drizzle <[EMAIL PROTECTED]> To: Rafael Ávila de Espíndola <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: how to compile gcc Date: Sat, 20 Aug 2005 09:48:56 -0400 If you are objective is to debug gcc, then all the necessary setup is already done...Check this d

Re: how to compile gcc

2005-08-20 Thread Mike Stump
On Friday, August 19, 2005, at 04:26 PM, Jiang Long wrote: I 'd like to dig into gcc internals, and would like to compile it with -g. cd /gcc && make cc1 is another way to do it.

Re: how to compile gcc

2005-08-20 Thread drizzle drizzle
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

Re: how to compile gcc

2005-08-20 Thread Rafael Ávila de Espíndola
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 ho

how to compile gcc

2005-08-19 Thread Jiang Long
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? Tha