[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    Re: Question
From:       "Martin v. Loewis" <martin () loewis ! home ! cs ! tu-berlin ! de>
Date:       2000-05-31 17:32:45
[Download RAW message or body]

> Below is the program followed by the bug at compile time.  This
> should not be a problem for my machine...the stack size is set to
> unlimited and I have 1 Gig of Ram.  This array should only be about
> 600 Megs.  I have done some tests and the program bails when the
> array gets above 264 megs +/- a little.

> Any clues.. 

This is a known problem: GCC internally represents the size of an
array as the number of bits, instead of the number of bytes; so that
range overflows unsigned 32bit. You either need to make the array
slightly smaller, or use a 64-bit-machine.

> or any suggestions on a different fortran compiler? 

This is the GCC list :-)

> Does gcc have the same bug?

Depends on the release, the front-end, and the target architecture. In
the mainline compiler, I believe the C compiler does not have the
problem anymore.

Regards,
Martin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic