[rtems commit] sparc: Simplify _CPU_Get_current_per_CPU_control()

Sebastian Huber sebh at rtems.org
Thu Dec 10 07:33:50 UTC 2015


Module:    rtems
Branch:    master
Commit:    b318cb138fad4a92fe2f30f197dc13abdac0ab0b
Changeset: http://git.rtems.org/rtems/commit/?id=b318cb138fad4a92fe2f30f197dc13abdac0ab0b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Dec 10 08:10:29 2015 +0100

sparc: Simplify _CPU_Get_current_per_CPU_control()

Drop the superfluous parenthesis since this confuses the C++ compiler of
some GCC versions.  See also

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67064

---

 cpukit/score/cpu/sparc/rtems/score/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h
index b73a56e..89c7dcd 100644
--- a/cpukit/score/cpu/sparc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h
@@ -1204,7 +1204,7 @@ void _CPU_Context_restore(
  */
 register struct Per_CPU_Control *_SPARC_Per_CPU_current __asm__( "g6" );
 
-#define _CPU_Get_current_per_CPU_control() ( _SPARC_Per_CPU_current )
+#define _CPU_Get_current_per_CPU_control() _SPARC_Per_CPU_current
 
 #if defined(RTEMS_SMP)
   uint32_t _CPU_SMP_Initialize( void );



More information about the vc mailing list