On Fri, May 25, 2001 at 11:15:48PM +0200, Kevin D. Kissell wrote: > > The following program cannot be compiled with gcc 2.95.3, because the > > offset is out of range (I consider it a bug in gcc -- it should allocate > > and load a temporary register itself and pass it appropriately as %0, > > I think gcc can be forgiven for not allocating a temporary, > given the ".set noat"... Except, of course, gcc doesn't even know the set noat is there. It doesn't parse the interior of asm() statements. > > > matching the "R" constraint; still it's better than generating bad code): > > > > int main(void) > > { > > int *p; > > > > asm volatile(".set push\n\t" > > ".set noat\n\t" > > "lw $0,%0\n\t" > > ".set pop" > > : > > : "R" (p[0x10000])); > > > > return 0; > > } > > > -- Daniel Jacobowitz Debian GNU/Linux Developer Monta Vista Software Debian Security Team