avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Bug in _MemoryBarrier()


From: Michael Rice
Subject: Re: [avr-libc-dev] Bug in _MemoryBarrier()
Date: Mon, 6 Jan 2014 06:07:09 -0500

_MemoryBarrier() was corrected with SVN revision 2307. Bug 37778 is still open (50% complete) because there has been some discussion as to whether the NOP instruction should have a memory barrier attribute.

On Jan 6, 2014, at 12:31 AM, Dhakshinamoorthy, Soundararajan wrote:

I suppose that there is a bug already. http://savannah.nongnu.org/bugs/?37778 . Hope it gets fixed :-)

Thanks,
Soundararajan

________________________________________
From: address@hidden address@hidden ] on behalf of Martin Laabs address@hidden
Sent: 04 January 2014 15:48:46
To: address@hidden
Subject: [avr-libc-dev] Bug in  _MemoryBarrier()

Hi,

in my avr-libc there is a bug in avr/cpufunc.h in the memory barrier macro.
It is defined as

#define _MemoryBarrier() __asm__ __volatile__(:::"memory")

but should be:

#define _MemoryBarrier() __asm__ __volatile__("" :::"memory")

Best regards,
Martin Laabs


_______________________________________________
AVR-libc-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

_______________________________________________
AVR-libc-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev




reply via email to

[Prev in Thread] Current Thread [Next in Thread]