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

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/

[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

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 laurynas.bivei...@gmail.com 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

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 kai.ruo...@wippies.com 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

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;

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

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 laurynas.bivei...@gmail.com 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

Re: on how to compile gcc-4.6 correctly?

2010-09-13 Thread Laurynas Biveinis
2010/9/13 Dennis, CHENG Renquan crq...@fedoraproject.org: On Mon, Sep 13, 2010 at 8:16 PM, Laurynas Biveinis laurynas.bivei...@gmail.com 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

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 laurynas.bivei...@gmail.com 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

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

Re: on how to compile gcc-4.6 correctly?

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

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 crq...@ymail.com wrote: --- On Mon, 6/9/10, Justin P. Mattock justinmatt...@gmail.com wrote: From: Justin P. Mattock justinmatt...@gmail.com Subject: Re: on how to compile gcc-4.6 correctly? To: Dennis crq...@fedoraproject.org Cc: gcc@gcc.gnu.org, crq

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

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