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: Dhakshinamoorthy, Soundararajan
Subject: Re: [avr-libc-dev] Bug in _MemoryBarrier()
Date: Mon, 6 Jan 2014 05:31:08 +0000

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



reply via email to

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