[13622] in Athena Bugs

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

The correct gccbug.s from 94q2

daemon@ATHENA.MIT.EDU (Bill Cattey)
Thu Jun 29 22:46:34 1995

Date: Thu, 29 Jun 1995 22:44:38 -0400 (EDT)
From: Bill Cattey <wdc@MIT.EDU>
To: bugs@MIT.EDU, gnu@MIT.EDU, reidmp@MIT.EDU, watchmakers@MIT.EDU,
        developers@MIT.EDU
Cc: yoav@MIT.EDU, tjm@MIT.EDU, proven@MIT.EDU

Thank you to all the people who took the trouble to tell me that I
pasted in the wrong .s file.  Too bad nobody bothered to write out the
.c file, runn cygnus gcc themselves and offer to save everybody time
waiting for me to come in and do it.

All right I'll tell you a secret:  The command line was

gcc -traditional -S gccbug.c

HERE'S THE BLOODY .s FILE!  EXCUSE ME FOR MISSING IT!  I'VE BEEN RATHER
OVERLOADED LATELY!

-wdc

	.file	"gccbug.c"
	.global .div
.section	".text"
	.align 4
	.global addarena
	.type	 addarena,#function
	.proc	04
addarena:
	!#PROLOGUE# 0
	save %sp,-120,%sp
	!#PROLOGUE# 1
	st %i0,[%fp+68]
	sethi %hi(A+4),%o0
	sethi %hi(A),%o1
	ld [%o0+%lo(A+4)],%o0
	ld [%o1+%lo(A)],%o2
	sub %o0,%o2,%o1
	mov %o1,%o0
	mov 24,%o1
	call .div,0
	nop
	sra %o0,3,%o1
	st %o1,[%fp-20]
.LL1:
	ret
	restore
.LLfe1:
	.size	 addarena,.LLfe1-addarena
		.common	A,8,4
	.ident	"GCC: (GNU) cygnus-2.5.90-940429"

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