Path: utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!HARVARD.HARVARD.EDU!brad%cayman From: brad%cayman@HARVARD.HARVARD.EDU (Brad Parker) Newsgroups: gnu.gcc.bug Subject: -finline-functions with asm() Message-ID: <8812201711.AA28235@cayman.Cayman.COM> Date: 20 Dec 88 17:11:11 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 28 This is not really a bug, but I'd be interested in any comments. I'm using -finline-functions to compile a module which has a bunch asm() statementing in it. One of the asm's has a label for a loop. When the compiler duplicates the code with the label (it's called several times and "inline-functions" does it's job), the label is duplicated and causes the assembler pass to fail. What I'm doing is not necessarily "good" or even "correct" in the absolute sense, but if I could generate a compiler label instead of the "absolute" label I'm using, the problem would go away. Any ideas? He'res an example (untested, just the concept) func1() { asm(" movew #3, d0"); asm("label: nop"); asm(" dbf d0,label"); } func2() { func1(); <--- code inserted twice, label is duplicated func1(); }