basic asm and memory clobbers - Proposed solution

Jeff Law law@redhat.com
Wed Dec 2 03:42:00 GMT 2015


On 12/01/2015 03:29 PM, David Wohlferd wrote:
> On 11/30/2015 4:01 AM, Andrew Haley wrote:
>  >> There is a way for people to be clear about what they want to clobber,
>  >> and that's to use extended asm.  The way to clear up the ambiguity
> is to
>  >> start deprecating basic asm, not to add to the confusion by changing
> its
>  >> behavior after all these years.
>  >
>  > Well, I disagree.  The warning is good, but so is the memory clobber.
>  > They're not exclusive.
>
> As Richard Henderson put it: "I'd be perfectly happy to deprecate and
> later completely remove basic asm within functions."
I understand Richard's position and while I think it has some merit, I 
think it's probably taking things too far at this time.

Jeff



More information about the Gcc mailing list