This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Inconsistent operand constraints in asm


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]