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: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Richard Sandiford <richards at transitive dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 12 Jul 2009 15:10:29 -0400 (EDT)
- Subject: Re: Don't use auto inc/dec addresses in asm operands
- References: <g4bpnsrep7.fsf@richards-desktop.transitives.com>
On Fri, 10 Jul 2009, Richard Sandiford wrote:
> 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,
Plenty of rope is given to the user, but...
> + /* We can't add pre- and post-modifications to asms, because we don't
> + know how many times the asm will access its memory operands. */
IMHO, that's just a bug in the program. Oh, it went in. :/
Aren't you also restricting explicit '<>' here?
brgds, H-P