From f7e5fb5fc25f13db224a3e2aa6c7aa4de6ca9468 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 11 Feb 2011 09:27:03 +0000 Subject: [PATCH] =?UTF-8?q?2011-02-11=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * score/include/rtems/score/basedefs.h: Use "__asm__" instead of "asm" for improved c99-compliance. --- cpukit/ChangeLog | 5 +++++ cpukit/score/include/rtems/score/basedefs.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 926a34d330..21bacbf4b3 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2011-02-11 Ralf Corsépius + + * score/include/rtems/score/basedefs.h: + Use "__asm__" instead of "asm" for improved c99-compliance. + 2011-02-10 Ralf Corsépius * libblock/include/rtems/bdpart.h (rtems_bdpart_format): diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h index 1c53130003..6bb03459e6 100644 --- a/cpukit/score/include/rtems/score/basedefs.h +++ b/cpukit/score/include/rtems/score/basedefs.h @@ -116,7 +116,7 @@ * impact interrupt disable and thread dispatching critical sections. */ #ifdef __GNUC__ - #define RTEMS_COMPILER_MEMORY_BARRIER() asm volatile("" ::: "memory") + #define RTEMS_COMPILER_MEMORY_BARRIER() __asm__ volatile("" ::: "memory") #else #define RTEMS_COMPILER_MEMORY_BARRIER() #endif