This is the mail archive of the gcc@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: gcc 3.4.0 20040121 / ia32 / read-write constraint does not allow a register


> It's complaining about the in-out memory constraint.  Use this
> instead:
> 
> 	: "+S" (src), "+D" (dst), "+c" (size), "=m" (*memory)
> 	: "m" (*memory)
> 	: "cc"

That's not the same, it doesn't guarantee that the input is the same
as the output.
And matching onstraing can't be made to work reliably for memory.
Support for "+" memory constraints was added as a feature for these
reasons; why do we warn about this now?


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