summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-10 08:10:29 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-10 08:32:36 +0100
commitb318cb138fad4a92fe2f30f197dc13abdac0ab0b (patch)
tree90cfaf87f3ca8e98d224c1ae3800b679f7d1013e
parentbsp/tqm8xx: Fix linker set description (diff)
downloadrtems-b318cb138fad4a92fe2f30f197dc13abdac0ab0b.tar.bz2
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
-rw-r--r--cpukit/score/cpu/sparc/rtems/score/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h
index b73a56e0c0..89c7dcd31b 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 );