<div dir="ltr">I'm a bit surprised we had this many left. I thought we had<div>generally come to agreement not to use register and were</div><div>slowly removing it anyway. Feel free to commit</div><div><br></div><div>Please update the Coding Conventions to include not</div><div>using register.<br><div><br></div><div><a href="https://devel.rtems.org/wiki/Developer/Coding/Conventions">https://devel.rtems.org/wiki/Developer/Coding/Conventions</a><br></div></div><div><br></div><div>--joel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 16, 2018 at 12:38 AM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The following code<br>
<br>
void f(void)<br>
{<br>
register int i;<br>
}<br>
<br>
gives a warning with GCC and -std=c++17<br>
<br>
test.cc: In function ‘void f()’:<br>
test.cc:3:15: warning: ISO C++1z does not allow ‘register’ storage class<br>
specifier [-Wregister]<br>
register int i;<br>
^<br>
<br>
and clang with -std=c++14<br>
<br>
test.cc:3:3: warning: 'register' storage class specifier is deprecated<br>
and incompatible with C++1z [-Wdeprecated-register]<br>
register int i;<br>
^~~~~~~~~<br>
1 warning generated.<br>
<br>
Remove the use of the register keyword at least in the public header<br>
files for C++ compatibility.<br>
<br>
Close #3397.<br>
---<br>
cpukit/score/cpu/i386/include/<wbr>rtems/score/cpu.h | 4 +--<br>
cpukit/score/cpu/i386/include/<wbr>rtems/score/i386.h | 42 +++++++++++-----------<br>
.../cpu/i386/include/rtems/<wbr>score/interrupts.h | 2 +-<br>
cpukit/score/cpu/lm32/include/<wbr>rtems/score/lm32.h | 10 +++---<br>
cpukit/score/cpu/m68k/include/<wbr>rtems/score/cpu.h | 6 ++--<br>
cpukit/score/cpu/m68k/include/<wbr>rtems/score/m68k.h | 8 ++---<br>
cpukit/score/cpu/mips/include/<wbr>rtems/score/mips.h | 16 ++++-----<br>
cpukit/score/cpu/powerpc/<wbr>include/rtems/score/cpu.h | 4 +--<br>
cpukit/score/cpu/riscv/<wbr>include/rtems/score/cpu.h | 2 +-<br>
cpukit/score/cpu/sh/include/<wbr>rtems/score/sh.h | 8 ++---<br>
cpukit/score/cpu/sparc/<wbr>include/rtems/score/sparc.h | 2 +-<br>
11 files changed, 52 insertions(+), 52 deletions(-)<br>
<br>
diff --git a/cpukit/score/cpu/i386/<wbr>include/rtems/score/cpu.h b/cpukit/score/cpu/i386/<wbr>include/rtems/score/cpu.h<br>
index 777439c6e0..42958c00f0 100644<br>
--- a/cpukit/score/cpu/i386/<wbr>include/rtems/score/cpu.h<br>
+++ b/cpukit/score/cpu/i386/<wbr>include/rtems/score/cpu.h<br>
@@ -522,8 +522,8 @@ extern void _CPU_Fatal_halt(uint32_t source, uint32_t error)<br>
<br>
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \<br>
{ \<br>
- register uint16_t __value_in_register = ( _value ); \<br>
- uint16_t __output = 0; \<br>
+ uint16_t __value_in_register = ( _value ); \<br>
+ uint16_t __output = 0; \<br>
__asm__ volatile ( "bsfw %0,%1 " \<br>
: "=r" ( __value_in_register ), "=r" ( __output ) \<br>
: "0" ( __value_in_register ), "1" ( __output ) \<br>
diff --git a/cpukit/score/cpu/i386/<wbr>include/rtems/score/i386.h b/cpukit/score/cpu/i386/<wbr>include/rtems/score/i386.h<br>
index 2555d13b8b..4b94e6feeb 100644<br>
--- a/cpukit/score/cpu/i386/<wbr>include/rtems/score/i386.h<br>
+++ b/cpukit/score/cpu/i386/<wbr>include/rtems/score/i386.h<br>
@@ -136,7 +136,7 @@ static inline uint16_t i386_swap_u16(<br>
*/<br>
static inline unsigned int i386_get_cr0(void)<br>
{<br>
- register unsigned int segment = 0;<br>
+ unsigned int segment = 0;<br>
<br>
__asm__ volatile ( "movl %%cr0,%0" : "=r" (segment) : "0" (segment) );<br>
<br>
@@ -150,7 +150,7 @@ static inline void i386_set_cr0(unsigned int segment)<br>
<br>
static inline unsigned int i386_get_cr2(void)<br>
{<br>
- register unsigned int segment = 0;<br>
+ unsigned int segment = 0;<br>
<br>
__asm__ volatile ( "movl %%cr2,%0" : "=r" (segment) : "0" (segment) );<br>
<br>
@@ -159,7 +159,7 @@ static inline unsigned int i386_get_cr2(void)<br>
<br>
static inline unsigned int i386_get_cr3(void)<br>
{<br>
- register unsigned int segment = 0;<br>
+ unsigned int segment = 0;<br>
<br>
__asm__ volatile ( "movl %%cr3,%0" : "=r" (segment) : "0" (segment) );<br>
<br>
@@ -243,7 +243,7 @@ int i386_Physical_to_real(<br>
<br>
static __inline__ unsigned short i386_get_cs(void)<br>
{<br>
- register unsigned short segment = 0;<br>
+ unsigned short segment = 0;<br>
<br>
__asm__ volatile ( "movw %%cs,%0" : "=r" (segment) : "0" (segment) );<br>
<br>
@@ -252,7 +252,7 @@ static __inline__ unsigned short i386_get_cs(void)<br>
<br>
static __inline__ unsigned short i386_get_ds(void)<br>
{<br>
- register unsigned short segment = 0;<br>
+ unsigned short segment = 0;<br>
<br>
__asm__ volatile ( "movw %%ds,%0" : "=r" (segment) : "0" (segment) );<br>
<br>
@@ -261,7 +261,7 @@ static __inline__ unsigned short i386_get_ds(void)<br>
<br>
static __inline__ unsigned short i386_get_es(void)<br>
{<br>
- register unsigned short segment = 0;<br>
+ unsigned short segment = 0;<br>
<br>
__asm__ volatile ( "movw %%es,%0" : "=r" (segment) : "0" (segment) );<br>
<br>
@@ -270,7 +270,7 @@ static __inline__ unsigned short i386_get_es(void)<br>
<br>
static __inline__ unsigned short i386_get_ss(void)<br>
{<br>
- register unsigned short segment = 0;<br>
+ unsigned short segment = 0;<br>
<br>
__asm__ volatile ( "movw %%ss,%0" : "=r" (segment) : "0" (segment) );<br>
<br>
@@ -279,7 +279,7 @@ static __inline__ unsigned short i386_get_ss(void)<br>
<br>
static __inline__ unsigned short i386_get_fs(void)<br>
{<br>
- register unsigned short segment = 0;<br>
+ unsigned short segment = 0;<br>
<br>
__asm__ volatile ( "movw %%fs,%0" : "=r" (segment) : "0" (segment) );<br>
<br>
@@ -288,7 +288,7 @@ static __inline__ unsigned short i386_get_fs(void)<br>
<br>
static __inline__ unsigned short i386_get_gs(void)<br>
{<br>
- register unsigned short segment = 0;<br>
+ unsigned short segment = 0;<br>
<br>
__asm__ volatile ( "movw %%gs,%0" : "=r" (segment) : "0" (segment) );<br>
<br>
@@ -300,29 +300,29 @@ static __inline__ unsigned short i386_get_gs(void)<br>
*/<br>
<br>
#define i386_outport_byte( _port, _value ) \<br>
-do { register unsigned short __port = _port; \<br>
- register unsigned char __value = _value; \<br>
+do { unsigned short __port = _port; \<br>
+ unsigned char __value = _value; \<br>
\<br>
__asm__ volatile ( "outb %0,%1" : : "a" (__value), "d" (__port) ); \<br>
} while (0)<br>
<br>
#define i386_outport_word( _port, _value ) \<br>
-do { register unsigned short __port = _port; \<br>
- register unsigned short __value = _value; \<br>
+do { unsigned short __port = _port; \<br>
+ unsigned short __value = _value; \<br>
\<br>
__asm__ volatile ( "outw %0,%1" : : "a" (__value), "d" (__port) ); \<br>
} while (0)<br>
<br>
#define i386_outport_long( _port, _value ) \<br>
-do { register unsigned short __port = _port; \<br>
- register unsigned int __value = _value; \<br>
+do { unsigned short __port = _port; \<br>
+ unsigned int __value = _value; \<br>
\<br>
__asm__ volatile ( "outl %0,%1" : : "a" (__value), "d" (__port) ); \<br>
} while (0)<br>
<br>
#define i386_inport_byte( _port, _value ) \<br>
-do { register unsigned short __port = _port; \<br>
- register unsigned char __value = 0; \<br>
+do { unsigned short __port = _port; \<br>
+ unsigned char __value = 0; \<br>
\<br>
__asm__ volatile ( "inb %1,%0" : "=a" (__value) \<br>
: "d" (__port) \<br>
@@ -331,8 +331,8 @@ do { register unsigned short __port = _port; \<br>
} while (0)<br>
<br>
#define i386_inport_word( _port, _value ) \<br>
-do { register unsigned short __port = _port; \<br>
- register unsigned short __value = 0; \<br>
+do { unsigned short __port = _port; \<br>
+ unsigned short __value = 0; \<br>
\<br>
__asm__ volatile ( "inw %1,%0" : "=a" (__value) \<br>
: "d" (__port) \<br>
@@ -341,8 +341,8 @@ do { register unsigned short __port = _port; \<br>
} while (0)<br>
<br>
#define i386_inport_long( _port, _value ) \<br>
-do { register unsigned short __port = _port; \<br>
- register unsigned int __value = 0; \<br>
+do { unsigned short __port = _port; \<br>
+ unsigned int __value = 0; \<br>
\<br>
__asm__ volatile ( "inl %1,%0" : "=a" (__value) \<br>
: "d" (__port) \<br>
diff --git a/cpukit/score/cpu/i386/<wbr>include/rtems/score/<wbr>interrupts.h b/cpukit/score/cpu/i386/<wbr>include/rtems/score/<wbr>interrupts.h<br>
index 6067254509..b682772617 100644<br>
--- a/cpukit/score/cpu/i386/<wbr>include/rtems/score/<wbr>interrupts.h<br>
+++ b/cpukit/score/cpu/i386/<wbr>include/rtems/score/<wbr>interrupts.h<br>
@@ -62,7 +62,7 @@ typedef int (*rtems_raw_irq_is_enabled) (const struct __rtems_raw_irq_connect_d<br>
<br>
#define i386_get_interrupt_level( _level ) \<br>
do { \<br>
- register uint32_t _eflags; \<br>
+ uint32_t _eflags; \<br>
\<br>
__asm__ volatile ( "pushf ; \<br>
pop %0" \<br>
diff --git a/cpukit/score/cpu/lm32/<wbr>include/rtems/score/lm32.h b/cpukit/score/cpu/lm32/<wbr>include/rtems/score/lm32.h<br>
index e8fecdf2f6..70d8bab735 100644<br>
--- a/cpukit/score/cpu/lm32/<wbr>include/rtems/score/lm32.h<br>
+++ b/cpukit/score/cpu/lm32/<wbr>include/rtems/score/lm32.h<br>
@@ -73,7 +73,7 @@ extern "C" {<br>
__asm__ volatile ("rcsr %0, ip":"=r"(_ip));<br>
<br>
#define lm32_disable_interrupts( _level ) \<br>
- do { register uint32_t ie; \<br>
+ do { uint32_t ie; \<br>
__asm__ volatile ("rcsr %0,ie":"=r"(ie)); \<br>
(_level) = ie; \<br>
ie &= (~0x0001); \<br>
@@ -84,28 +84,28 @@ extern "C" {<br>
__asm__ volatile ("wcsr ie,%0"::"r"(_level));<br>
<br>
#define lm32_flash_interrupts( _level ) \<br>
- do { register uint32_t ie; \<br>
+ do { uint32_t ie; \<br>
__asm__ volatile ("wcsr ie,%0"::"r"(_level)); \<br>
ie = (_level) & (~0x0001); \<br>
__asm__ volatile ("wcsr ie,%0"::"r"(ie)); \<br>
} while (0)<br>
<br>
#define lm32_interrupt_unmask( _mask ) \<br>
- do { register uint32_t im; \<br>
+ do { uint32_t im; \<br>
__asm__ volatile ("rcsr %0,im":"=r"(im)); \<br>
im |= _mask; \<br>
__asm__ volatile ("wcsr im,%0"::"r"(im)); \<br>
} while (0)<br>
<br>
#define lm32_interrupt_mask( _mask ) \<br>
- do { register uint32_t im; \<br>
+ do { uint32_t im; \<br>
__asm__ volatile ("rcsr %0,im":"=r"(im)); \<br>
im &= ~(_mask); \<br>
__asm__ volatile ("wcsr im,%0"::"r"(im)); \<br>
} while (0)<br>
<br>
#define lm32_interrupt_ack( _mask ) \<br>
- do { register uint32_t ip = _mask; \<br>
+ do { uint32_t ip = _mask; \<br>
__asm__ volatile ("wcsr ip,%0"::"r"(ip)); \<br>
} while (0)<br>
<br>
diff --git a/cpukit/score/cpu/m68k/<wbr>include/rtems/score/cpu.h b/cpukit/score/cpu/m68k/<wbr>include/rtems/score/cpu.h<br>
index fc6847f37e..9b140d0da3 100644<br>
--- a/cpukit/score/cpu/m68k/<wbr>include/rtems/score/cpu.h<br>
+++ b/cpukit/score/cpu/m68k/<wbr>include/rtems/score/cpu.h<br>
@@ -501,7 +501,7 @@ extern const unsigned char _CPU_m68k_BFFFO_table[256];<br>
<br>
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \<br>
{ \<br>
- register int dumby; \<br>
+ int dumby; \<br>
\<br>
__asm__ volatile ( \<br>
" clr.l %1\n" \<br>
@@ -521,7 +521,7 @@ extern const unsigned char _CPU_m68k_BFFFO_table[256];<br>
#elif ( M68K_HAS_EXTB_L == 1 )<br>
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \<br>
{ \<br>
- register int dumby; \<br>
+ int dumby; \<br>
\<br>
__asm__ volatile ( " move.w %2,%1\n" \<br>
" lsr.w #8,%1\n" \<br>
@@ -539,7 +539,7 @@ extern const unsigned char _CPU_m68k_BFFFO_table[256];<br>
#else<br>
#define _CPU_Bitfield_Find_first_bit( _value, _output ) \<br>
{ \<br>
- register int dumby; \<br>
+ int dumby; \<br>
\<br>
__asm__ volatile ( " move.w %2,%1\n" \<br>
" lsr.w #8,%1\n" \<br>
diff --git a/cpukit/score/cpu/m68k/<wbr>include/rtems/score/m68k.h b/cpukit/score/cpu/m68k/<wbr>include/rtems/score/m68k.h<br>
index 818578c078..f37d978ab9 100644<br>
--- a/cpukit/score/cpu/m68k/<wbr>include/rtems/score/m68k.h<br>
+++ b/cpukit/score/cpu/m68k/<wbr>include/rtems/score/m68k.h<br>
@@ -334,7 +334,7 @@ extern "C" {<br>
<br>
#if ( defined(__mcoldfire__) )<br>
#define m68k_disable_interrupts( _level ) \<br>
- do { register uint32_t _tmpsr = 0x0700; \<br>
+ do { uint32_t _tmpsr = 0x0700; \<br>
__asm__ volatile ( "move.w %%sr,%0\n\t" \<br>
"or.l %0,%1\n\t" \<br>
"move.w %1,%%sr" \<br>
@@ -354,7 +354,7 @@ extern "C" {<br>
<br>
#if ( defined(__mcoldfire__) )<br>
#define m68k_flash_interrupts( _level ) \<br>
- do { register uint32_t _tmpsr = 0x0700; \<br>
+ do { uint32_t _tmpsr = 0x0700; \<br>
asm volatile ( "move.w %2,%%sr\n\t" \<br>
"or.l %2,%1\n\t" \<br>
"move.w %1,%%sr" \<br>
@@ -371,7 +371,7 @@ extern "C" {<br>
<br>
#define m68k_get_interrupt_level( _level ) \<br>
do { \<br>
- register uint32_t _tmpsr; \<br>
+ uint32_t _tmpsr; \<br>
\<br>
__asm__ volatile( "move.w %%sr,%0" : "=d" (_tmpsr)); \<br>
_level = (_tmpsr & 0x0700) >> 8; \<br>
@@ -379,7 +379,7 @@ extern "C" {<br>
<br>
#define m68k_set_interrupt_level( _newlevel ) \<br>
do { \<br>
- register uint32_t _tmpsr; \<br>
+ uint32_t _tmpsr; \<br>
\<br>
__asm__ volatile( "move.w %%sr,%0" : "=d" (_tmpsr)); \<br>
_tmpsr = (_tmpsr & 0xf8ff) | ((_newlevel) << 8); \<br>
diff --git a/cpukit/score/cpu/mips/<wbr>include/rtems/score/mips.h b/cpukit/score/cpu/mips/<wbr>include/rtems/score/mips.h<br>
index 4c2c53fa6d..3b6115e9b6 100644<br>
--- a/cpukit/score/cpu/mips/<wbr>include/rtems/score/mips.h<br>
+++ b/cpukit/score/cpu/mips/<wbr>include/rtems/score/mips.h<br>
@@ -136,7 +136,7 @@ extern "C" {<br>
<br>
#define mips_set_sr( _x ) \<br>
do { \<br>
- register unsigned int __x = (_x); \<br>
+ unsigned int __x = (_x); \<br>
__asm__ volatile( "mtc0 %0, $12; nop" : : "r" (__x) ); \<br>
} while (0)<br>
<br>
@@ -153,7 +153,7 @@ extern "C" {<br>
<br>
#define mips_set_cause( _x ) \<br>
do { \<br>
- register unsigned int __x = (_x); \<br>
+ unsigned int __x = (_x); \<br>
__asm__ volatile( "mtc0 %0, $13; nop" : : "r" (__x) ); \<br>
} while (0)<br>
<br>
@@ -172,7 +172,7 @@ extern "C" {<br>
<br>
#define mips_set_dcic( _x ) \<br>
do { \<br>
- register unsigned int __x = (_x); \<br>
+ unsigned int __x = (_x); \<br>
__asm__ volatile( "mtc0 %0, $7; nop" : : "r" (__x) ); \<br>
} while (0)<br>
<br>
@@ -193,8 +193,8 @@ extern "C" {<br>
<br>
#define mips_set_bpcrm( _x, _y ) \<br>
do { \<br>
- register unsigned int __x = (_x); \<br>
- register unsigned int __y = (_y); \<br>
+ unsigned int __x = (_x); \<br>
+ unsigned int __y = (_y); \<br>
__asm__ volatile( "mtc0 %0, $11; nop" : : "r" (__y) ); \<br>
__asm__ volatile( "mtc0 %0, $3; nop" : : "r" (__x) ); \<br>
} while (0)<br>
@@ -218,8 +218,8 @@ extern "C" {<br>
<br>
#define mips_set_bdarm( _x, _y ) \<br>
do { \<br>
- register unsigned int __x = (_x); \<br>
- register unsigned int __y = (_y); \<br>
+ unsigned int __x = (_x); \<br>
+ unsigned int __y = (_y); \<br>
__asm__ volatile( "mtc0 %0, $9; nop" : : "r" (__y) ); \<br>
__asm__ volatile( "mtc0 %0, $5; nop" : : "r" (__x) ); \<br>
} while (0)<br>
@@ -244,7 +244,7 @@ extern "C" {<br>
<br>
#define mips_set_fcr31( _x ) \<br>
do { \<br>
- register unsigned int __x = (_x); \<br>
+ unsigned int __x = (_x); \<br>
__asm__ volatile( "ctc1 %0, $31; nop" : : "r" (__x) ); \<br>
} while(0)<br>
<br>
diff --git a/cpukit/score/cpu/powerpc/<wbr>include/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/<wbr>include/rtems/score/cpu.h<br>
index 02560695bd..31e74aba95 100644<br>
--- a/cpukit/score/cpu/powerpc/<wbr>include/rtems/score/cpu.h<br>
+++ b/cpukit/score/cpu/powerpc/<wbr>include/rtems/score/cpu.h<br>
@@ -661,7 +661,7 @@ RTEMS_INLINE_ROUTINE bool _CPU_ISR_Is_enabled( uint32_t level )<br>
<br>
static inline uint32_t _CPU_ISR_Get_level( void )<br>
{<br>
- register unsigned int msr;<br>
+ uint32_t msr;<br>
_CPU_MSR_GET(msr);<br>
if (msr & MSR_EE) return 0;<br>
else return 1;<br>
@@ -669,7 +669,7 @@ static inline uint32_t _CPU_ISR_Get_level( void )<br>
<br>
static inline void _CPU_ISR_Set_level( uint32_t level )<br>
{<br>
- register unsigned int msr;<br>
+ uint32_t msr;<br>
_CPU_MSR_GET(msr);<br>
if (!(level & CPU_MODES_INTERRUPT_MASK)) {<br>
msr |= ppc_interrupt_get_disable_<wbr>mask();<br>
diff --git a/cpukit/score/cpu/riscv/<wbr>include/rtems/score/cpu.h b/cpukit/score/cpu/riscv/<wbr>include/rtems/score/cpu.h<br>
index ada46ef9ee..6f286e0bd8 100644<br>
--- a/cpukit/score/cpu/riscv/<wbr>include/rtems/score/cpu.h<br>
+++ b/cpukit/score/cpu/riscv/<wbr>include/rtems/score/cpu.h<br>
@@ -158,7 +158,7 @@ Context_Control_fp _CPU_Null_fp_context;<br>
<br>
static inline unsigned long riscv_interrupt_disable( void )<br>
{<br>
- register unsigned long status = read_csr(mstatus);<br>
+ unsigned long status = read_csr(mstatus);<br>
clear_csr(mstatus, MSTATUS_MIE);<br>
return status;<br>
}<br>
diff --git a/cpukit/score/cpu/sh/include/<wbr>rtems/score/sh.h b/cpukit/score/cpu/sh/include/<wbr>rtems/score/sh.h<br>
index 4e26478b8b..6ac5ef1382 100644<br>
--- a/cpukit/score/cpu/sh/include/<wbr>rtems/score/sh.h<br>
+++ b/cpukit/score/cpu/sh/include/<wbr>rtems/score/sh.h<br>
@@ -170,7 +170,7 @@ extern "C" {<br>
<br>
#define sh_get_interrupt_level( _level ) \<br>
{ \<br>
- register uint32_t _tmpsr ; \<br>
+ uint32_t _tmpsr ; \<br>
\<br>
__asm__ volatile( "stc sr, %0" : "=r" (_tmpsr) ); \<br>
_level = (_tmpsr & 0xf0) >> 4 ; \<br>
@@ -178,7 +178,7 @@ extern "C" {<br>
<br>
#define sh_set_interrupt_level( _newlevel ) \<br>
{ \<br>
- register uint32_t _tmpsr; \<br>
+ uint32_t _tmpsr; \<br>
\<br>
__asm__ volatile ( "stc sr, %0" : "=r" (_tmpsr) ); \<br>
_tmpsr = ( _tmpsr & ~0xf0 ) | ((_newlevel) << 4) ; \<br>
@@ -194,7 +194,7 @@ static inline uint32_t sh_swap_u32(<br>
uint32_t value<br>
)<br>
{<br>
- register uint32_t swapped;<br>
+ uint32_t swapped;<br>
<br>
__asm__ volatile (<br>
"swap.b %1,%0; "<br>
@@ -210,7 +210,7 @@ static inline uint16_t sh_swap_u16(<br>
uint16_t value<br>
)<br>
{<br>
- register uint16_t swapped ;<br>
+ uint16_t swapped ;<br>
<br>
__asm__ volatile ( "swap.b %1,%0" : "=r" (swapped) : "r" (value) );<br>
<br>
diff --git a/cpukit/score/cpu/sparc/<wbr>include/rtems/score/sparc.h b/cpukit/score/cpu/sparc/<wbr>include/rtems/score/sparc.h<br>
index 47d8e6f0bd..4846520b46 100644<br>
--- a/cpukit/score/cpu/sparc/<wbr>include/rtems/score/sparc.h<br>
+++ b/cpukit/score/cpu/sparc/<wbr>include/rtems/score/sparc.h<br>
@@ -390,7 +390,7 @@ void sparc_syscall_exit(uint32_t exitcode1, uint32_t exitcode2)<br>
*/<br>
#define sparc_get_interrupt_level( _level ) \<br>
do { \<br>
- register uint32_t _psr_level = 0; \<br>
+ uint32_t _psr_level = 0; \<br>
\<br>
sparc_get_psr( _psr_level ); \<br>
(_level) = \<br>
<span class="HOEnZb"><font color="#888888">-- <br>
2.12.3<br>
<br>
______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a></font></span></blockquote></div><br></div>