[8057] in Athena Bugs

home help back first fref pref prev next nref lref last post

decmips 7.3M: f77

daemon@ATHENA.MIT.EDU (ellis@ATHENA.MIT.EDU)
Wed Aug 28 09:55:49 1991

From: ellis@ATHENA.MIT.EDU
To: testers@MIT.EDU
Date: Wed, 28 Aug 91 09:56:03 EDT

System name:		m33-222-9
Type and version:	KN01 7.3M
Display type:		PMAX-MFB

What were you trying to do?
	 compile and run the following test program with the "-O0" flag
         (no optimization).

	real*4 a,b,c
	integer i,j,k
	i = 1
	k = 0
	a = 0.0
	b = 2.0
	c = a**i
	write(6,*) c
	c = b**k
	write(6,*) c
	c = a**k
	write(6,*) c
	stop
	end


What's wrong:
         The program dies on line 11, c=a**k, with the following error:

          Trace/BPT trap
          
         when compiled with the default optimization, the program runs without
         error

What should have happened:
        The program should give the same results for both optimization and
        no optimization. 

Please describe any relevant documentation references:


home help back first fref pref prev next nref lref last post