Re: GCC 4.5 is uncompilable

2009-11-21 Thread Dave Korn
Matt wrote: > Hey Dave, > > What OS are you bootstrapping on, and with which compiler/version? > (Cygwin, I assume, but you never know ;>) Yep, Cygwin native using 4.3.4 as bootstrap compiler. > I haven't been able to bootstrap for a few weeks, but no one answered my > email for help (which pr

Re: i370 port - constructing compile script

2009-11-21 Thread Paul Edwards
gcov-iov creates a gcov-iov.h which has a version number which changes when I change MVS versions. So I am thinking of updating gcov-iov.c so that when the target is MVS, it generates a more fixed format. I don't see how the generated number depends on the MVS version ... It is supposed to dep

Impressively difficult to compile code for GNAT

2009-11-21 Thread gcc
Hello. I'm working on a small project to create an abstraction over directories and archives. I've managed to write some code that seems simple enough (using tagged limited types) and even though the code appears to be valid, it seems to either trigger bugs in the runtime (causing crashes on execu

Re: Impressively difficult to compile code for GNAT

2009-11-21 Thread gcc
Here's another case from a prototype that causes a crash on GCC 4.4 but, ironically, gives every impression of compiling and running on earlier versions (4.3, GPL 2009): with Ada.Streams.Stream_IO; with Ada.Finalization; package Archiver is type Archiver_t is tagged limited private; type Arc

Re: Impressively difficult to compile code for GNAT

2009-11-21 Thread Robert Dewar
By the way, a general note is that it is usually a good idea to stay away from anonymous access types, since for one thing, there are real issues in freeing them.

How does builtin_sqrt get used - or not

2009-11-21 Thread Andrew Hutchinson
I am tracking test failure with avr target where function sqrtf is undefined reference at link time. Here is command line: /media/verbatim/gcchead/obj-dir/gcc/xgcc -B/media/verbatim/gcchead/obj-dir/gcc/ /media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/pr41963.c -O2 -ffast-math -DSTACK_SI

Re: i370 port - constructing compile script

2009-11-21 Thread Paolo Bonzini
On 11/13/2009 12:43 PM, Paul Edwards wrote: I normally define PREFIX in a common header file. However, this caused a conflict between prefix.c and regex.c which both try to use this keyword. regex.c is forked from anything else, so I don't think a patch changing PREFIX to FUNC_PREFIX will hav

Re: i370 port - constructing compile script

2009-11-21 Thread Paolo Bonzini
On 11/14/2009 12:27 PM, Paul Edwards wrote: So what I have done is get the compiler to fail on any missing prototype. I think perhaps we need to have a generic gcc or autoconfigure option called "config by prototype". MVS is just one instance where you might wish to do it this way. Other port

Re: How does builtin_sqrt get used - or not

2009-11-21 Thread Ian Lance Taylor
Andrew Hutchinson writes: > I am tracking test failure with avr target where function sqrtf is > undefined reference at link time. > > Here is command line: > > /media/verbatim/gcchead/obj-dir/gcc/xgcc > -B/media/verbatim/gcchead/obj-dir/gcc/ > /media/verbatim/gcchead/trunk/gcc/testsuite/gcc.dg/p

Re: Impressively difficult to compile code for GNAT

2009-11-21 Thread gcc
On 2009-11-21 12:09:11, Robert Dewar wrote: > By the way, a general note is that it is usually a good > idea to stay away from anonymous access types, since > for one thing, there are real issues in freeing them. Agreed, yes. In the real project, the String_Access types from the unbounded strings

Re: Impressively difficult to compile code for GNAT

2009-11-21 Thread gcc
Bug filed here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42140