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


Hans-Peter Nilsson <hp@bitrange.com> writes:
> 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. :/

Um, no it didn't...

Richard


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