Re: egcs 1.0.1 miscompiles Linux 2.0.33

Albert D. Cahalan (acahalan@cs.uml.edu)
Fri, 13 Mar 1998 13:54:27 -0500 (EST)


>>> If done as soon as the inline assembly is parsed, this wouldn't
>>> affect very much of the compiler at all.
>>
>> AFAIKS, gcc just passes the strings inside an asm() straight
>> through to the assembler, without even looking at them.
>> It is certainly how I would implement this...
>
> This is exactly how gcc treats asms.
>
> The only thing the compiler looks at are the output, input and
> clobber lists. The asm string itself isn't parsed.

That is enough. Pseudocode:

for each input register X {
if X is in clobber_list {
remove X from clobber_list
put X in dummy output_list
}
}

We wouldn't have assembly with clobbered inputs if it wasn't the
natural way to express such code. Computers exist to serve humans.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu