Article View: gnu.gcc.bug
Article #2408Bug? in asm processing on sparc in 1.34
From: Benson I. Margulies Kendall Squa...
Date: Thu, 16 Mar 1989 21:35
Date: Thu, 16 Mar 1989 21:35
23 lines
921 bytes
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!bensonShow 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