lkml.org 
[lkml]   [1998]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: egcs 1.0.1 miscompiles Linux 2.0.33
Date
>>> 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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.101 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site