🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2408

Bug? in asm processing on sparc in 1.34

#2408
From: Benson I. Margulies Kendall Squa...
Date: Thu, 16 Mar 1989 21:35
23 lines
921 bytes
I was trying to get the effect of the following sequence 
that I have used with sun cc and inline. It makes a function
that returns the value of %fsr.

	.inline _get_fpastatus,2
	st	%fsr,[%sp+0x44]
	ld	[%sp+0x44],%o0
	.end

I wrote:

long gfpa ()
{
	long ret;

	asm ( "st %fsr, %0" : "=o" (ret) );
	return ret;
}

and cc1 took a segmentation fault. I looked a little, but
I'm afraid that its over my head.

--benson
Technical Details
Message-ID: <8903162135.AA15922@rikers.ksr.com>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!HARVARD.HARVARD.EDU!ksr!benson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!HARVARD.HARVARD.EDU!ksr!benson
From: ksr!benson@HARVARD.HARVARD.EDU (Benson I. Margulies                         Kendall Square Research Corp.)
Newsgroups: gnu.gcc.bug
Subject: Bug? in asm processing on sparc in 1.34
Message-ID: <8903162135.AA15922@rikers.ksr.com>
Date: 16 Mar 89 21:35:03 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: benson@ksr.com
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 23