[tree-ssa] RFC: Never gimplify ASM_EXPRs
Daniel Jacobowitz
drow@mvista.com
Thu Jun 5 15:40:00 GMT 2003
On Thu, Jun 05, 2003 at 11:17:25AM -0400, Diego Novillo wrote:
> On Thu, 2003-06-05 at 11:12, Jason Merrill wrote:
> > Andrew and I discussed this issue at the summit, and agreed (I thought)
> > that the asm should either make the operand an input/output operand or pass
> > in X and do the dereference in the explicit assembly. I strongly disagree
> > with your proposal.
> >
> OK, how do we fix it then? That function seems to rely on accessing 'x'
> directly from the register it's being passed on as an argument. They're
> playing low-level games with the ABI. I don't see how we can fix it at
> the tree level.
>
> Is this an invalid use of __asm__ then?
No, I believe that asm doesn't care what register it gets - what
matters is that it reference the character in memory, not have it
loaded into a temporary and then saved onto the stack. Fixing the asm
is pretty straightforward.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gcc
mailing list