Re: Phase 1 of gcc-in-cxx now complete

2009-06-26 Thread Ian Lance Taylor
Matt writes: >> * Develop some trial patches which require C++, e.g., convert VEC to >> std::vector. > > Do you have any ideas for the easiest starting points? Is there > anywhere that is decently self-contained, or will if have to be a big > bang? Thanks for your interest. I think the one I m

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Seiji Kachi
Kai Tietz wrote: No, this bug appeared on all windows pe-coff targets. A fix for this is already checked in yesterday on binutils. Could you try it with the current binutils head version? Cheers, Kai I solved this failure with binutils-2.19.51. Thank you. Seiji

Re: Phase 1 of gcc-in-cxx now complete

2009-06-26 Thread Matt
* Develop some trial patches which require C++, e.g., convert VEC to std::vector. Do you have any ideas for the easiest starting points? Is there anywhere that is decently self-contained, or will if have to be a big bang? I'd love to see this happen so there's more exercising of template

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Ian Lance Taylor
Arnaud Charlet writes: >> Switching gnatbind to generate Ada if there's nothing against >> it might be a better solution since stage1 uses the system gnatbind, so >> a patch to current gnatbind will not help (unless we push it to branches >> and tell user to install a fairly recent gnatbind first

Re: unsigned integer wrap 'trap'.

2009-06-26 Thread Ian Lance Taylor
samboy writes: > I have a storage application to which I can record or retrieve files. Its > multi-process C/C++ compiled > to run on the SPARC platform. The problem is the maximum file size which can > be stored is 4GB due to > the size being internally conveyed using an unsigned integer. I ne

Re: (known?) Issue with bitmap iterators

2009-06-26 Thread Alexander Monakov
On Fri, 26 Jun 2009, Joe Buck wrote: On Fri, Jun 26, 2009 at 03:38:31AM -0700, Alexander Monakov wrote: 1. Add bool field `modified_p' in bitmap structure. 2. Make iterator setup functions (e.g. bmp_iter_set_init) reset it to false. 3. Make functions that modify the bitmap set it to true. 4.

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Arnaud Charlet
> Switching gnatbind to generate Ada if there's nothing against > it might be a better solution since stage1 uses the system gnatbind, so > a patch to current gnatbind will not help (unless we push it to branches > and tell user to install a fairly recent gnatbind first). This does create a bootst

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Laurent GUERBY
On Fri, 2009-06-26 at 14:07 -0400, Robert Dewar wrote: > Ian Lance Taylor wrote: > > > gnatbind -C appears to be used when bootstrapping gcc to generate .c > > files. With --enable-build-with-cxx, those .c files will be compiled > > with a C++ compiler. The symbols emitted by that compilation ne

Re: Phase 1 of gcc-in-cxx now complete

2009-06-26 Thread Adam Nemet
Ian Lance Taylor writes: > I would like to encourage people to try using --enable-build-with-cxx in > other configuration--other bootstraps, cross-compilers--to see how well > it works. Please let me know if you run into problems that you don't > know how, or don't have time, to fix. With GMP 4.

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Robert Dewar
Ian Lance Taylor wrote: gnatbind -C appears to be used when bootstrapping gcc to generate .c files. With --enable-build-with-cxx, those .c files will be compiled with a C++ compiler. The symbols emitted by that compilation need to be linkable with the symbols emitted when compiling Ada code, s

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Ian Lance Taylor
Robert Dewar writes: > Ian Lance Taylor wrote: > >> I think the function to change is Gen_Output_File_C in bindgen.adb. > > I don't really see any urgency for this change, yes gnatbind has > the option to generate C, but it is not the normal path, and only > of use in unusual circumstances, so I

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Arnaud Charlet
> I don't really see any urgency for this change, yes gnatbind has > the option to generate C, but it is not the normal path, and only > of use in unusual circumstances, so I don't really see the need > for this output to be C++ compatible. The documentation doesn't > claim this after all. We're t

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Robert Dewar
Ian Lance Taylor wrote: I think the function to change is Gen_Output_File_C in bindgen.adb. I don't really see any urgency for this change, yes gnatbind has the option to generate C, but it is not the normal path, and only of use in unusual circumstances, so I don't really see the need for thi

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Arnaud Charlet
> I don't really know how the Ada compiler works, but it looks like this > code is generated by the gnatbind program. I bet it would work if > gnatbind -C emitted this at the start of the output: > > #ifdef __cplusplus > extern "C" { > #endif > > and emitted this at the end: > > #ifdef __cplusp

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Ian Lance Taylor
Laurent GUERBY writes: > Next issue is that gnat1 link fails on many missing symbols: > > ada/b_gnat1.o: In function `adainit()': > ada/b_gnat1.c:287: undefined reference to `system__soft_links___elabb()' > ada/b_gnat1.c:291: undefined reference to > `system__secondary_stack___elabb()' > > a

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Tim Prince
Kai Tietz wrote: 2009/6/26 Tim Prince : Kai Tietz wrote: 2009/6/26 Seiji Kachi : Angelo Graziosi wrote: Dave Korn ha scritto: Angelo Graziosi wrote: I want to flag the following failure I have seen on Cygwin 1.5 trying to build current 4.5

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Steve Kargl
On Fri, Jun 26, 2009 at 06:51:35PM +0200, Angelo Graziosi wrote: > Steve Kargl ha scritto: > > > >Can you guys learn to trim the cc list? This issue > >has absoutely nothing to do with gfortran. Yet, > >for...@gcc.gnu.org is being spammed with your email. > > Really... it was discovered because

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Angelo Graziosi
Steve Kargl ha scritto: Can you guys learn to trim the cc list? This issue has absoutely nothing to do with gfortran. Yet, for...@gcc.gnu.org is being spammed with your email. Really... it was discovered because someone has the 'bad' habit to build gfortran... :-) Have a nice day. An

Re: (known?) Issue with bitmap iterators

2009-06-26 Thread Joe Buck
On Fri, Jun 26, 2009 at 03:38:31AM -0700, Alexander Monakov wrote: > 1. Add bool field `modified_p' in bitmap structure. > 2. Make iterator setup functions (e.g. bmp_iter_set_init) reset it to > false. > 3. Make functions that modify the bitmap set it to true. > 4. Make iterator increment function

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Steve Kargl
On Fri, Jun 26, 2009 at 06:17:15PM +0200, Kai Tietz wrote: > > you can find the binutils project as usual under > http://sources.redhat.com/binutils/ . You can find on this page how > you are able to get current cvs version of binutils. This project > contains the gnu tools, like dlltool, as, objc

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Kai Tietz
2009/6/26 Tim Prince : > Kai Tietz wrote: >> >> 2009/6/26 Seiji Kachi : >> >>> >>> Angelo Graziosi wrote: >>> Dave Korn ha scritto: > > Angelo Graziosi wrote: > >> >> I want to flag the following failure I have seen on Cygwin 1.5 trying >> to >> build curr

Re: Problem on Front-End List Page

2009-06-26 Thread Joe Buck
On Fri, Jun 26, 2009 at 08:59:32AM -0700, Bryce wrote: > Many IDEs other than the ones that you list on your page of > front-ends to GCC compiler exist. One such IDE is XCode 3.1.3, which > is developed by Apple, Inc. That's not an oversight. The intention is to only include free software,

Problem on Front-End List Page

2009-06-26 Thread Bryce
To the GCC team, Many IDEs other than the ones that you list on your page of front-ends to GCC compiler exist. One such IDE is XCode 3.1.3, which is developed by Apple, Inc. From a Visitor to Your Website

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Tim Prince
Kai Tietz wrote: 2009/6/26 Seiji Kachi : Angelo Graziosi wrote: Dave Korn ha scritto: Angelo Graziosi wrote: I want to flag the following failure I have seen on Cygwin 1.5 trying to build current 4.5-20090625 gcc snapshot: So what's in config.log? And wha

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Tim Prince
Dave Korn wrote: Angelo Graziosi wrote: I want to flag the following failure I have seen on Cygwin 1.5 trying to build current 4.5-20090625 gcc snapshot: So what's in config.log? And what binutils are you using? cheers, DaveK In my case, it says no permission to execu

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Arnaud Charlet
> > What is the way forward: fixing in some way the Ada Makefile? Or doing > > search and replace in case of keyword/identifier conflict? If > > search/replace, do AdaCore people have an opinion on the best way > > to proceed to avoid maintenance issues in the various trees? (eg: commit > > of thos

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Ian Lance Taylor
Laurent GUERBY writes: > What is the way forward: fixing in some way the Ada Makefile? Or doing > search and replace in case of keyword/identifier conflict? If > search/replace, do AdaCore people have an opinion on the best way > to proceed to avoid maintenance issues in the various trees? (eg: c

Re: Any ideas how to get the IRA to choose one subclass of registers over another in the same cover class?

2009-06-26 Thread Dave Hudson
Jeff Law wrote: Dave Hudson wrote: I would have hoped that having done the analysis early on that the register allocator would try to allocate from the preferred register class rather than the cover class but it seems that doesn't happen? So you're saying that the register preferences look r

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Tim Prince
Angelo Graziosi wrote: > I want to flag the following failure I have seen on Cygwin 1.5 trying to > build current 4.5-20090625 gcc snapshot: > checking whether the C compiler works... configure: error: in > `/tmp/build/intl': > configure: error: cannot run C compiled programs. > If you meant to cr

Re: Phase 1 of gcc-in-cxx now complete

2009-06-26 Thread Jack Howarth
On Fri, Jun 26, 2009 at 01:33:06AM -0500, Gabriel Dos Reis wrote: > On Thu, Jun 25, 2...@5:47 PM, Joe Buck wrote: > > On Thu, Jun 25, 2...@03:19:19PM -0700, Joseph S. Myers wrote: > >> On Thu, 25 Jun 2009, Ian Lance Taylor wrote: > >> > >> > * Test starting the bootstrap with earlier versions of th

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Kai Tietz
2009/6/26 Seiji Kachi : > Angelo Graziosi wrote: >> >> Dave Korn ha scritto: >>> >>> Angelo Graziosi wrote: I want to flag the following failure I have seen on Cygwin 1.5 trying to build current 4.5-20090625 gcc snapshot: >>> >>>  So what's in config.log?  And what binutils are you u

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Seiji Kachi
Angelo Graziosi wrote: Dave Korn ha scritto: Angelo Graziosi wrote: I want to flag the following failure I have seen on Cygwin 1.5 trying to build current 4.5-20090625 gcc snapshot: So what's in config.log? And what binutils are you using? The config logs are attached, while binutils is

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Angelo Graziosi
Dave Korn ha scritto: Angelo Graziosi wrote: I want to flag the following failure I have seen on Cygwin 1.5 trying to build current 4.5-20090625 gcc snapshot: So what's in config.log? And what binutils are you using? The config logs are attached, while binutils is the current in Cygwin-1

Re: Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Dave Korn
Angelo Graziosi wrote: > I want to flag the following failure I have seen on Cygwin 1.5 trying to > build current 4.5-20090625 gcc snapshot: So what's in config.log? And what binutils are you using? cheers, DaveK

Re: Phase 1 of gcc-in-cxx now complete (Ada)

2009-06-26 Thread Laurent GUERBY
On Thu, 2009-06-25 at 15:28 -0700, Ian Lance Taylor wrote: > Richard Guenther writes: > > >> I guess this has to do with reserved word conflict on "new": > >> > >> << > >> tree > >> substitute_in_type (tree t, tree f, tree r) > >> { > >> tree new; > > >> > >> Do you have some way to deal wi

Failure building current 4.5 snapshot on Cygwin

2009-06-26 Thread Angelo Graziosi
I want to flag the following failure I have seen on Cygwin 1.5 trying to build current 4.5-20090625 gcc snapshot: --- [...] make[2]: Entering directory `/tmp/build' Configuring stage 2 in ./intl Configuring stage 2 in ./libiberty Configuring stage 2 in ./l

Re: (known?) Issue with bitmap iterators

2009-06-26 Thread Alexander Monakov
On Thu, 25 Jun 2009, Jeff Law wrote: I wasn't suggesting we make them "safe" in the sense that one could modify the bitmap and everything would just work. Instead I was suggesting we make the bitmap readonly for the duration of the iterator and catch attempts to modify the bitmap -- under th

About machine.md in insight-gdb debug

2009-06-26 Thread daniel tian
Hi: I check the MIPS and ARM, both those cc1 files opened in Insight debug tool contain the mips.md and arm.md file. It is convenient while break point can be set in it. My port md file doesn't appear in the insight. How can I make it? Thank you very much. -- Best Regards daniel tian Mavrix Te

unsigned integer wrap 'trap'.

2009-06-26 Thread samboy
Wasn't sure whether to post this to gcc Dev or Patches so its both to start with. Its my first posting to this forum so first some background: I have a storage application to which I can record or retrieve files. Its multi-process C/C++ compiled to run on the SPARC platform. The problem is the