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


On 07/10/2009 03:54 AM, 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,
because the asm can legitimately write to the memory more
than once or (as here) not write to it at all.

Not to say your patch shouldn't go in but FYI, there's an S constraint on ia64 that is used to prohibit autoinc addresses in asms. It may be that can be simplified or eliminated.



r~



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