Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Eric Botcazou
> This is not the global constructor/destructor issue with names > generated by collect2. But ELF or SVR4 is able to provide a unique > name without resorting to random numbers. Not clear if the name needs be unique at all if you have the right features, see name-lookup.c:get_anonymous_namespace

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread David Edelsohn
On Wed, Jul 20, 2011 at 4:53 PM, Mike Stump wrote: > On Jul 20, 2011, at 1:25 PM, Ian Lance Taylor wrote: >> Interesting.  I don't know why this doesn't happen on GNU/Linux. > > It doesn't happen as the symbols in question are local on linux.  collect2 > runs nm on public symbols looking for symb

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Ian Lance Taylor
Mike Stump writes: >> Presumably the fix will be to use -frandom-seed. > > But, the random seem was to ensure that things that should not collide, > don't. If you use 0, then things that should not collide, eventually will > and your world with then end. In the present code base, it is perfec

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Toon Moene
On 07/20/2011 04:34 PM, Toon Moene wrote: So I changed my "lto" bootstrap script to do the following: language=fortran if [ $RANDOM -lt 16384 ] then language=ada fi ... ../gcc/configure \ ... --enable-languages=c++,$language \ Still have to see if this will fit in the 2:20 hour gap between two

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Mike Stump
On Jul 20, 2011, at 1:25 PM, Ian Lance Taylor wrote: > Interesting. I don't know why this doesn't happen on GNU/Linux. It doesn't happen as the symbols in question are local on linux. collect2 runs nm on public symbols looking for symbols of a particular form, it then builds two lists, one for

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Ian Lance Taylor
David Edelsohn writes: > I now can get through the build of the compiler, but stage2 and stage3 > libstdc++ and libsupc++ files have many comparison failures due to > tree.c:get_file_function_name() introducing explicit randomness to > produce different symbols for anonymous namespaces: Interest

Re: How to add a new pass?

2011-07-20 Thread DJ Delorie
> That's clear, sorry for the confision. From where in the > backend do you call register_pass? I used TARGET_ASM_FILE_START()

Re: How to add a new pass?

2011-07-20 Thread Georg-Johann Lay
DJ Delorie schrieb: I just call register_pass() with a suitable struct. Which hook did you use to add/move the pass? I used register_pass(). That's clear, sorry for the confision. From where in the backend do you call register_pass?

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread David Edelsohn
I now can get through the build of the compiler, but stage2 and stage3 libstdc++ and libsupc++ files have many comparison failures due to tree.c:get_file_function_name() introducing explicit randomness to produce different symbols for anonymous namespaces: /* Otherwise, the name must be uniq

Re: hi all

2011-07-20 Thread Ian Lance Taylor
santosh tatoju writes: > for gcc there are many directories in gcc/testsuite directory > > like gcc.dg, gcc.c-torture,gcc-misc-tests, gcc-target, and for > > g++ compiler g++.dg, g++-old.dg i just want to know what are all these for. > > i got info. for gcc related as gcc.c-torture for stressin

Re: How to add a new pass?

2011-07-20 Thread DJ Delorie
> > I just call register_pass() with a suitable struct. > > Which hook did you use to add/move the pass? I used register_pass().

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Thomas Schwinge
Hi! On Wed, 20 Jul 2011 11:41:37 -0400, David Edelsohn wrote: > AIX needs libsupc++ for libstdc++ static linking. > > * Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): Add libsupc++ to > link directories. > * Makefile.in: Rebuild. > > Index: Makefile.tpl > ===

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Ian Lance Taylor
David Edelsohn writes: > AIX needs libsupc++ for libstdc++ static linking. > > * Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): Add libsupc++ to > link directories. > * Makefile.in: Rebuild. > > Index: Makefile.tpl > ===

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread David Edelsohn
AIX needs libsupc++ for libstdc++ static linking. * Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): Add libsupc++ to link directories. * Makefile.in: Rebuild. Index: Makefile.tpl === --- Makefile.tpl(revision 17648

hi all

2011-07-20 Thread santosh tatoju
hi all i am working with cross compiler version gcc - 4.1.2 our team has ported the c & c++ cross compiler for our target processor. i have a task of testing the c++ cross compiler, i just want to know about the test suites available for c++, and i have the following questions for gcc there are

Re: libstdc++-6.dll doesn't export functions -- gcc-4.6.1 and host=i686-pc-mingw32

2011-07-20 Thread Rainer Emrich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 20.07.2011 17:25, schrieb Jonathan Wakely: > This should go to the libstdc++ list or even better to bugzilla, thanks > > > > On 20/07/2011, Rainer Emrich wrote: > Hi, > > there is a big issue in the gcc-4.6 series. > On mingw libstdc++-6.dll ex

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Jonathan Wakely
Feel the burn^Wchurn! On 20/07/2011, Ian Lance Taylor wrote: > Diego Novillo writes: > >> On Wed, Jul 20, 2011 at 08:41, Richard Guenther >> wrote: >> >>> Which is good as it increases testing coverage.  We probably would have >>> missed this bug completely if you wouldn't have notice it. >>

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Ian Lance Taylor
Toon Moene writes: > On 07/19/2011 08:33 PM, Ian Lance Taylor wrote: > >>> 2011-07-15 Ian Lance Taylor >>> >>> * configure.ac: Add --enable-build-poststage1-with-cxx. If set, >>> make C++ a boot_language. Set and substitute >>> POSTSTAGE1_CONFIGURE_FLAGS. >>> * Makefile.tpl (PO

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Toon Moene
On 07/19/2011 08:33 PM, Ian Lance Taylor wrote: 2011-07-15 Ian Lance Taylor * configure.ac: Add --enable-build-poststage1-with-cxx. If set, make C++ a boot_language. Set and substitute POSTSTAGE1_CONFIGURE_FLAGS. * Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): Ne

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Ian Lance Taylor
Diego Novillo writes: > On Wed, Jul 20, 2011 at 08:41, Richard Guenther > wrote: > >> Which is good as it increases testing coverage.  We probably would have >> missed this bug completely if you wouldn't have notice it. > > Agreed. The pain we feel due to this is similar to the pain one feels >

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Diego Novillo
On Wed, Jul 20, 2011 at 08:41, Richard Guenther wrote: > Which is good as it increases testing coverage.  We probably would have > missed this bug completely if you wouldn't have notice it. Agreed. The pain we feel due to this is similar to the pain one feels after exercising vigorously. Dieg

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Richard Guenther
On Wed, Jul 20, 2011 at 2:36 PM, David Edelsohn wrote: > On Wed, Jul 20, 2011 at 5:43 AM, Jonathan Wakely > wrote: > >> Paolo has committed a change to that code, does it help the AIX bootstrap >> issue? > > Paolo's patch gets me past the debug.cc issue. > > Using C++ on AIX will greatly increa

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread David Edelsohn
On Wed, Jul 20, 2011 at 5:43 AM, Jonathan Wakely wrote: > Paolo has committed a change to that code, does it help the AIX bootstrap > issue? Paolo's patch gets me past the debug.cc issue. Using C++ on AIX will greatly increase the bootstrap time on AIX because configure is much slower, even us

Multi-register location descriptors in dwarf2out.c

2011-07-20 Thread Richard Sandiford
dwarf2out.c:multiple_reg_loc_descriptor has the code: size = GET_MODE_SIZE (GET_MODE (XVECEXP (regs, 0, 0))); loc_result = NULL; for (i = 0; i < XVECLEN (regs, 0); ++i) { dw_loc_descr_ref t; t = one_reg_loc_descriptor (REGNO (XVECEXP (regs, 0, i)),

libstdc++-6.dll doesn't export functions -- gcc-4.6.1 and host=i686-pc-mingw32

2011-07-20 Thread Rainer Emrich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, there is a big issue in the gcc-4.6 series. On mingw libstdc++-6.dll exports only: atomic_flag_clear_explicit atomic_flag_test_and_set_explicit The gcc-4.5 series is fine. Rainer -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Com

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Jonathan Wakely
On 20 July 2011 09:35, Jonathan Wakely wrote: > On 20 July 2011 02:14, David Edelsohn wrote: >> On Tue, Jul 19, 2011 at 2:33 PM, Ian Lance Taylor wrote: >> >>> I got agreement from two global reviewers and no objections. >>> >>> I have committed this patch. >>> >>> Please let me know about any pro

Re: About nested Designated Initializers

2011-07-20 Thread Jonathan Wakely
On 20 July 2011 01:04, Jonathan Wakely wrote: > > C99 doesn't even support .c[6] syntax for initializers, it's a GCC extension. Apologies, C99 does support that, my mistake. But you can still only initialize one member of a union.

Re: How to add a new pass?

2011-07-20 Thread Georg-Johann Lay
DJ Delorie wrote: > Ian Lance Taylor writes: >> I don't think anybody has ever done this. At the moment only plugins >> add new passes. But I agree that backends clearly need to be able to do >> this, and some passes need to move into the appropriate backends. I >> would encourage you to fix th

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-20 Thread Jonathan Wakely
On 20 July 2011 02:14, David Edelsohn wrote: > On Tue, Jul 19, 2011 at 2:33 PM, Ian Lance Taylor wrote: > >> I got agreement from two global reviewers and no objections. >> >> I have committed this patch. >> >> Please let me know about any problems. > > This also breaks bootstrap on AIX.  I cannot