This is the mail archive of the gcc-bugs@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]

Re: Inline Assembly Register Allocation Bug? (Was: Possible bug withgcc 2.95.2 on Hitachi h8)


>>   asm volatile ("movl\t(%1),%0\n\t"
>> 		"movl\t(%1),%0"
>> 		: "=r" (temp) : "r" (p));
>
>This is not a bug.  You need to tell gcc that operand 0 is earlyclobbered:
>
>  asm volatile ("movl\t(%1),%0\n\t"
>		"movl\t(%1),%0"
>		: "=&r" (temp) : "r" (p));
>
>Bernd

Does this imply a bug in egcs 1.1.2 (it should have produced the same
erroneous code) ?

ROSCO


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