Path: 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 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