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: basic asm and memory clobbers


On 23/11/15 21:02, David Wohlferd wrote:
>> On 11/23/2015 2:04 AM, Andrew Haley wrote:
>> > My warning still holds: there are modes of compilation on some
>> > machines where you can't clobber all registers without causing reload
>> > failures.  This is why Jeff didn't fix this in 1999.  So, if we really
>> > do want to clobber "all" registers in basic asm it'll take a lot of
>> > work.
>
> I was always reluctant to see this change made.  In addition to the 
> issues you mention, I had questions about the impact on the surrounding 
> code.  I like Richard's direction much better.  We can start with a 
> disabled warning, then upgrade as seems warranted.

I don't see any problem with unconditionally clobbering memory.

Andrew.


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