This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Inline Assembly Register Allocation Bug? (Was: Possible bug withgcc 2.95.2 on Hitachi h8)
- To: Kazu Hirata <kazu at hxi dot com>
- Subject: Re: Inline Assembly Register Allocation Bug? (Was: Possible bug withgcc 2.95.2 on Hitachi h8)
- From: Bernd Schmidt <bernds at cygnus dot co dot uk>
- Date: Mon, 17 Jul 2000 21:16:53 +0100 (BST)
- cc: gcc-bugs at gcc dot gnu dot org
> asm volatile ("movl\t(%1),%0\n\t"
> "movl\t(%1),%0"
> : "=r" (temp) : "r" (p));
This is not a bug. You need to tell gcc that operand 0 is earlyclobbered:
asm volatile ("movl\t(%1),%0\n\t"
"movl\t(%1),%0"
: "=&r" (temp) : "r" (p));
Bernd