This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Inconsistent operand constraints in asm
- From: Richard Henderson <rth at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 18 Nov 2002 17:26:16 -0800
- Subject: Re: [tree-ssa] Inconsistent operand constraints in asm
- References: <jeof8tcuam.fsf@sykes.suse.de>
On Wed, Nov 13, 2002 at 05:24:01PM +0100, Andreas Schwab wrote:
> - : "=r"(oldval), "=m"(*addr)
> - : "r"(n), "1"(*addr) : "memory");
> + : "=r"(oldval), "+m"(*addr)
> + : "r"(n) : "memory");
This shouldn't change anything. Oh, it did because the
gimplification resulted in different address temporaries
for the two addresses.
There's no reason to use matching constraints with memory.
Just use "=m" and "m".
r~