Re: Ada subtypes and base types

2006-03-16 Thread Richard Guenther
On 3/16/06, Geert Bosch <[EMAIL PROTECTED]> wrote: > > On Mar 16, 2006, at 05:09, Robert Dewar wrote: > > Not quite right. If you have an uninitialized variable, the value is > > invalid and may be out of bounds, but this is a bounded error > > situation, > > not an erroneous program. So the possib

Re: changing the SPARC default

2006-03-16 Thread Ralf Corsepius
On Wed, 2006-03-15 at 20:10 -0800, Alexey Starovoytov wrote: > Hi, > > The default architecture for GCC SPARC is V7. > What do gcc sparc developers think about changing it to V8PLUS? > > Few things to consider: > - v7 is legacy > . used in old Sun's sun4c systems > . 32-bit only > .

_GLOBAL_ query

2006-03-16 Thread Inder
Hi All I have a query regarding __GLOBAL_ prefixed symbols. while compiling the testcase given below produces a symbol '_GLOBAL__I_main', which according to the defination of static global initiallization should be a global symbol. But gcc makes it a local symbols. can anyone explain the reason

Re: Using only regular register names in emitted assembly

2006-03-16 Thread Richard Sandiford
Nikolaos Kavvadias <[EMAIL PROTECTED]> writes: > how is it possible to emit regular register names (e.g. for the MIPS > to use $31 and not $ra) when producing assembly output (with > mips-elf-gcc -S)? That seems an odd example. gcc already uses $31 rather than $ra. The only two mnemonic names it

Re: _GLOBAL_ query

2006-03-16 Thread Manfred Hollstein
Hi there, On Thu, 16 Mar 2006, 11:35:56 +0100, Inder wrote: > Hi All > > I have a query regarding __GLOBAL_ prefixed symbols. > while compiling the testcase given below produces > a symbol '_GLOBAL__I_main', which according to the defination of > static global initiallization should be a global

Re: changing the SPARC default

2006-03-16 Thread Jiri Gaisler
There is a large installed based of V7/V8 Sparc devices, and it is in fact growing. This is because of the adoption of the LEON SPARC V8 processor, which is used in a growing number of embedded devices. As an example, the Nemerix NJ1030A GPS receiver contains a LEON SPARC cpu and was shipped in 1

Re: Ada subtypes and base types

2006-03-16 Thread Laurent GUERBY
On Thu, 2006-03-16 at 10:43 +0100, Richard Guenther wrote: > On 3/16/06, Geert Bosch <[EMAIL PROTECTED]> wrote: > > > > On Mar 16, 2006, at 05:09, Robert Dewar wrote: > > > Not quite right. If you have an uninitialized variable, the value is > > > invalid and may be out of bounds, but this is a bou

Re: Ada subtypes and base types

2006-03-16 Thread Laurent GUERBY
On Wed, 2006-03-15 at 23:09 -0500, Robert Dewar wrote: > Laurent GUERBY wrote: > > On Mon, 2006-03-13 at 15:31 -0700, Jeffrey A Law wrote: > >> On Mon, 2006-02-27 at 20:08 +0100, Waldek Hebisch wrote: > >> > >>> What do you mean by "abuse"? TYPE_MAX_VALUE means maximal value > >>> allowed by given

Re: Ada subtypes and base types

2006-03-16 Thread Geert Bosch
On Mar 16, 2006, at 10:43, Richard Guenther wrote: Uh - what do you expect here?? Does the Ada standard require a out-of-range exception upon the first use of N? In this case, the frontend needs to insert a proper check. You cannot expect the middle-end to avoid the above transformation, so thi

Re: Ada subtypes and base types

2006-03-16 Thread Richard Guenther
On 3/16/06, Laurent GUERBY <[EMAIL PROTECTED]> wrote: > On Thu, 2006-03-16 at 10:43 +0100, Richard Guenther wrote: > > On 3/16/06, Geert Bosch <[EMAIL PROTECTED]> wrote: > > > > > > On Mar 16, 2006, at 05:09, Robert Dewar wrote: > > > > Not quite right. If you have an uninitialized variable, the va

Re: Ada subtypes and base types

2006-03-16 Thread Richard Guenther
On 3/16/06, Richard Guenther <[EMAIL PROTECTED]> wrote: > On 3/16/06, Laurent GUERBY <[EMAIL PROTECTED]> wrote: > > On Thu, 2006-03-16 at 10:43 +0100, Richard Guenther wrote: > > > On 3/16/06, Geert Bosch <[EMAIL PROTECTED]> wrote: > > > > > > > > On Mar 16, 2006, at 05:09, Robert Dewar wrote: > >

Re: Ada subtypes and base types

2006-03-16 Thread Richard Guenther
On 3/16/06, Laurent GUERBY <[EMAIL PROTECTED]> wrote: > On Thu, 2006-03-16 at 10:43 +0100, Richard Guenther wrote: > > On 3/16/06, Geert Bosch <[EMAIL PROTECTED]> wrote: > > > > > > On Mar 16, 2006, at 05:09, Robert Dewar wrote: > > > > Not quite right. If you have an uninitialized variable, the va

compiling postgres on AIX

2006-03-16 Thread harbecke
Hello, when compiling postgres 8.1.2 with GCC 3.3.2 (obtained as binary package from http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html ) on AIX 5.3, we get: gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing

Re: Ada subtypes and base types

2006-03-16 Thread Richard Guenther
On 3/16/06, Richard Guenther <[EMAIL PROTECTED]> wrote: > On 3/16/06, Laurent GUERBY <[EMAIL PROTECTED]> wrote: > > procedure T2 is > >type R is range 1 .. 10; > >type T is array (R) of Integer; > >I : R; > >X : T; > > begin > >X (I) := 0; > > end T2; > > > > The Ada FE will ins

Re: Ada subtypes and base types

2006-03-16 Thread Andrew Pinski
On Mar 16, 2006, at 8:10 AM, Richard Guenther wrote: The above was for 4.1.0 - with mainline gigi now generates if (i == 0 || i > 10) { __gnat_rcheck_06 ("t2.adb", 7); } else { } x[() (t2__TrB) i]{lb: 1 sz: 4} = 0; huh? That's even more bogus. It might not be g

Re: aapcs apcs-gnu

2006-03-16 Thread Paul Brook
> Ok, > but the default is to use the apcs-gnu instend of aapcs. Is it right? For > compatibility problem is usefull to forse the abi to the standard. Depends how you configure your toolchain. If you use the eabi targets the default will be aapcs/EABI. Paul

openmp support

2006-03-16 Thread Dierk Bolten
Hi! I was wondering if openmp is already available in the mainline release of gcc. According to http://gcc.gnu.org/svn.html#wwwdocs (look under inactive branches) the gomp branch has been merged with the mainline and gnu.gcc.org reports that an OpenMP v2.5 parallel programming interface implemen

Re: openmp support

2006-03-16 Thread Diego Novillo
On 03/16/06 09:15, Dierk Bolten wrote: > I was wondering if openmp is already available in the mainline release of gcc. > Yes. Look in GCC's home page for the announcement. > However, I cannot find any trace of it in the current gcc sources. > Use the -fopenmp switch.

Default for tls-direct-segs-ref

2006-03-16 Thread Bastian Blank
Hi folks Currently gcc creates negative segment offsets within TLS code for i386/x86_64 with glibc. The docu also stat that this feature is system dependant. Now there is a variant of linux on i386/x86_64 which don't allow such access: xenlinux. Support for this virtualization method is raising.

Re: changing the SPARC default

2006-03-16 Thread Joel Sherrill
Jiri Gaisler wrote: There is a large installed based of V7/V8 Sparc devices, and it is in fact growing. This is because of the adoption of the LEON SPARC V8 processor, which is used in a growing number of embedded devices. As an example, the Nemerix NJ1030A GPS receiver contains a LEON SPARC cp

Re: Ada subtypes and base types

2006-03-16 Thread Richard Guenther
On 3/16/06, Andrew Pinski <[EMAIL PROTECTED]> wrote: > > On Mar 16, 2006, at 8:10 AM, Richard Guenther wrote: > > > The above was for 4.1.0 - with mainline gigi now generates > > > > if (i == 0 || i > 10) > > { > > __gnat_rcheck_06 ("t2.adb", 7); > > } > > else > > { > > > >

Re: gcc 4.0.2

2006-03-16 Thread techdesk100
your error is because gcc needs in the directory where you compile the header files so first extract your w32api and runtime in that directory (step 05) OK I got a lot of problems compile gcc 4.1.0 with mingw/msys Finally its done Because it took me a lot of time here the solution http://prdownlo

Re: compiling postgres on AIX

2006-03-16 Thread David Edelsohn
> harbecke writes: harbecke> when compiling postgres 8.1.2 with GCC 3.3.2 (obtained as binary package from harbecke> http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html harbecke> ) on AIX 5.3, we get: harbecke> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -

Re: compiling postgres on AIX

2006-03-16 Thread harbecke
David, > > This is not a GCC problem. AIX 5.2 and above provide _isnan and > _isnanf: > > $ oslevel > 5.3.0.0 > $ nm -BCpg /usr/lib/libm.a | grep isnan > /usr/lib/libm.a[isnan.o]: > 0 T ._isnan > /usr/lib/libm.a[_isnanf.o]: > 0 T ._isnanf > > Are you sure that the libm

[4.2 Regression]: Gcc generates unaligned access on IA64

2006-03-16 Thread H. J. Lu
FYI, today's gcc 4.2 generates many unaligned access on IA64: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26721 It may be related to http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01001.html http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01000.html http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00999.

Re: [4.2 Regression]: Gcc generates unaligned access on IA64

2006-03-16 Thread Maxim Kuvyrkov
H. J. Lu wrote: FYI, today's gcc 4.2 generates many unaligned access on IA64: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26721 It may be related to http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01001.html http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01000.html http://gcc.gnu.org/ml/gcc-patches

gcc-4.0-20060316 is now available

2006-03-16 Thread gccadmin
Snapshot gcc-4.0-20060316 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.0-20060316/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.0 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

getarg_ and iargc_

2006-03-16 Thread Steven Bosscher
Hi, So this Mandriva guy tells me gfortran can't compile Scilab, and he is right! Scilab is a pretty important piece of Fortran that many people use, so it is a shame that gfortran can't build it right now. But the reason why it can't is not really a Fortran problem (at least I haven't found any

Re: getarg_ and iargc_

2006-03-16 Thread H. J. Lu
On Fri, Mar 17, 2006 at 12:13:30AM +0100, Steven Bosscher wrote: > Hi, > > So this Mandriva guy tells me gfortran can't compile Scilab, and > he is right! Scilab is a pretty important piece of Fortran that > many people use, so it is a shame that gfortran can't build it > right now. But the reas

Re: getarg_ and iargc_

2006-03-16 Thread Steve Kargl
On Fri, Mar 17, 2006 at 12:13:30AM +0100, Steven Bosscher wrote: > I'm looking for suggestions for how to fix this in libgfortran. > I would fix this in Scilab, except that if gfortran is to be a > drop-in replacement for g77, then we shouldn't have this kind of > rather silly compatibilty issues.

Re: getarg_ and iargc_

2006-03-16 Thread Steven Bosscher
On 3/17/06, Steve Kargl <[EMAIL PROTECTED]> wrote: > > Careful. libgfortran attempts to keep its namespace clean > by appending gfortran_ to its intrinsics procedure. I know, I invented that, sort of (/me does the Al Gore "I invented..." shuffle ;-) > If > you really want to expose getarg_ and

Re: changing the SPARC default

2006-03-16 Thread Alexey Starovoytov
> Debian has been running with V8PLUS as the default since the sarge release > cycles started. I.e. years. looking at linux64.h it seems that the default Linux config is -m64 -mcpu=v9. Are you saying that Debian configured gcc package for -m32 -mcpu=v9? Great. How about other Linux distributions?

Re: getarg_ and iargc_

2006-03-16 Thread Steve Kargl
On Fri, Mar 17, 2006 at 12:49:16AM +0100, Steven Bosscher wrote: > On 3/17/06, Steve Kargl <[EMAIL PROTECTED]> wrote: > > > If > > you really want to expose getarg_ and iargc_, look at abort_. > > I really do want to somehow make it easy for people to link against > libgfortran when they are comp