Re: basic asm and memory clobbers - Proposed solution

2015-12-12 Thread David Wohlferd
On 12/12/2015 1:51 AM, Andrew Haley wrote: Solution 2: Change the docs to say that basic asm clobbers everything (memory, all registers, etc) or perhaps just memory (some debate here), but that due to bugs that will eventually be addressed, it doesn't currently work this way. You've missed the m

Re: basic asm and memory clobbers - Proposed solution

2015-12-12 Thread Paul_Koning
> On Dec 12, 2015, at 4:51 AM, Andrew Haley wrote: > > ... > You've missed the most practical solution, which meets most common > usage: clobber memory, but not registers. That allows most of the > effects that people intuitively want and expect, but avoids the > breakage of register clobbers.

Re: basic asm and memory clobbers - Proposed solution

2015-12-12 Thread Andrew Haley
On 11/12/15 22:18, David Wohlferd wrote: > And here are the three solutions that have been proposed: > > Solution 1: > Just document the current behavior of basic asm. > > People who have written incorrect code can be pointed at the text and > told to fix their code. People whose code is damag