problem with asm()

Marc Lehmann (mlehmann@hildesheim.sgh-net.de)
Fri, 28 Feb 1997 00:48:32 +0100 (MET)


Hi.. there is an __asm__ __volatile__ statement in

arch/i386/lib/checksum.c:csum_partial_copy_generic

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

end_of_body:

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 http://www.goof.com/pcg

-----==-
----==-- _
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / mlehmann@hildesheim.sgh-net.de
-=====/_/_//_/\_,_/ /_/\_\ pcg@goof.com
The choice of a GNU generation