This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Don't use auto inc/dec addresses in asm operands
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: richards at transitive dot com
- Date: Fri, 10 Jul 2009 19:58:58 +0200
- Subject: Re: Don't use auto inc/dec addresses in asm operands
- References: <g4bpnsrep7.fsf@richards-desktop.transitives.com>
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."