problem with asm()

Marc Lehmann (
Fri, 28 Feb 1997 00:48:32 +0100 (MET)

Hi.. there is an __asm__ __volatile__ statement in


that causes trouble... it happens that this
functions gets inlined by my compiler :) and
it does contain non-local labels, e.g.


the problem is that when the function is inlined that asm
is copied and... gas detects an duplicate identifier..

I see no reason why __asm__ __volatile__ shouldn't be
cloned by the compiler, so I regard this as a bug in linux :)
(easy for me)..

can anything be done about that? is it possible to use local labels
instead? I could compile my kernel again....


for a pentium-optimizing gcc, look at

----==-- _
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ /
-=====/_/_//_/\_,_/ /_/\_\
The choice of a GNU generation