Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: running  g77-0.5.21
@ 1997-09-12 20:45 Claus Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Claus Denk @ 1997-09-12 20:45 UTC (permalink / raw)


Roman Martonak wrote:
> 
> I have successfully compiled and installed g77-0.5.21 on my friend's UDB with
> 40 MB RAM and 96 MB swap, it took 3 3/4 hours and went smoothly. However, when
> I compile the following simple program and try to run it (no optimization),
> 
>         program test
> 
>         real*8 a
>         integer*4 i
> 
>         do i = 1,4000000,1
> 
>         a = a + dlog(dfloat(i))
> 
>         enddo
> 
>         write(*,*)'a = ',a
> 
>         stop
>         end
> 
> the program crashes with the message Floating Exception. Any idea what might
> be wrong ?
> 

You have to initialize a. The f77 standard does not specify
what value should be given to an uninitialized variable.

regards, Claus

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <199709111507.LAA22469@melange.gnu.ai.mit.edu>]

end of thread, other threads:[~1997-09-12 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-12 20:45 running g77-0.5.21 Claus Denk
     [not found] <199709111507.LAA22469@melange.gnu.ai.mit.edu>
1997-09-12 15:19 ` Roman Martonak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox