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: Don't use auto inc/dec addresses in asm operands


Richard Sandiford <richards@transitive.com> writes:

> This patch fixes a case in which an AIX compiler would use a
> PRE_INC address inside an asm "m" operand.  We can't rely on
> asm operands to do increments and decrements like this,
> because the asm can legitimately write to the memory more
> than once or (as here) not write to it at all.

Shouldn't you use "o" for that?  The "m" constraint has always generated
auto inc/dec on targets that support it.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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