|
From: | Ralf Ramsauer |
Subject: | [avr-libc-dev] Erroneous definition of _MemoryBarrier() in cpufunc.h |
Date: | Sat, 21 Jan 2017 17:54:26 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
Hi, you define _MemoryBarrier() inside avr/cpufunc.h as follows: #define _MemoryBarrier() __asm__ __volatile__(:::"memory") which won't compile in my case: foo.c:33:2: error: expected string literal before ‘:’ token _MemoryBarrier(); Shouldn't this rather be defined as: #define _MemoryBarrier() __asm__ __volatile__("":::"memory") If someone could confirm this I'll send a short patch. Cheers Ralf PS: BTW: your project page [0] links to [1], which seems to be a dead link. [0] http://savannah.nongnu.org/cvs/?group=avr-libc [1] http://web.cvs.savannah.nongnu.org/viewcvs/?root=avr-libc -- Ralf Ramsauer GPG: 0x8F10049B
[Prev in Thread] | Current Thread | [Next in Thread] |