Hi,

Please find attached the patch for the bug report pr37778, 
(https://savannah.nongnu.org/bugs/?37778).The same is also attached to the bug


Thanks,
Soundararajan

ChangeLog

(pr37778.patch)
2014-03-13 Soundararajan <sounderaraja...@atmel.com>

    * include/avr/cpufunc.h: Added memory barrier for the nop instruction 
definition _NOP()
                                                 Fixed compile error with 
_MemoryBarrier declaration
--- include/avr/cpufunc.h
+++ include/avr/cpufunc.h
@@ -58,7 +58,7 @@
 */
 #define _NOP()
 #else  /* real code */
-#define _NOP() __asm__ __volatile__("nop")
+#define _NOP() __asm__ __volatile__("nop":::"memory")
 #endif  /* __DOXYGEN__ */
 
 #if defined(__DOXYGEN__)
@@ -77,7 +77,7 @@
 */
 #define _MemoryBarrier()
 #else  /* real code */
-#define _MemoryBarrier() __asm__ __volatile__(:::"memory")
+#define _MemoryBarrier() __asm__ __volatile__("":::"memory")
 #endif  /* __DOXYGEN__ */
 
 #endif /* _AVR_CPUFUNC_H_ */
_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to