[Top] [All Lists]

Re: [PATCH]: fix compiler warnings in the math-emulator

To: Greg Lindahl <>
Subject: Re: [PATCH]: fix compiler warnings in the math-emulator
From: Juan Quintela <>
Date: 18 Dec 2002 23:27:57 +0100
Cc: linux mips mailing list <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92
>>>>> "greg" == Greg Lindahl <> writes:

>> > Sometimes you don't care whether you do only "half" a macro instruction
>> > if the branch is taken. Usually though, the warning is a good thing - I
>> > remember having spent many hours finding bugs like this with assemblers
>> > that don't issue warnings.
>> This is exactly what ".set nomacro" is for -- I can't see any reason for
>> such warnings when ".set macro" is active.

greg> While in general I like playing with sharp knives (you should see my
greg> cluster admin toolkit), and I like my kernel to run fast, and the only
greg> thing that gets trashed is usually at, I still think I'd prefer to
greg> have nops in those delay slots in the kernel. Hand-written assembly is
greg> unlikely to use ".set nomacro" properly.

In the kernel for IP22 (I suppose the same for other architectures),
it has only two Assembler warnings.  And they are all in the fast
path :(

one is in entry.S:excetp_vec3_r4000

and the other is in head.S:ejtag_debug_handler

I am not sure about the first one, but the second one shouldn't be
performance critical :(

Later, Juan.

In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

<Prev in Thread] Current Thread [Next in Thread>