RTEMS | sparc: Use of register on file scope variable (#5106)

Joel Sherrill (@joel) gitlab at rtems.org
Wed Aug 7 21:23:15 UTC 2024



Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5106



## Summary

This is a warning from a recent build of sparc/leon3. The register specification needs to be removed.

```
[4261/4735] Compiling testsuites/sptests/sptask_err01/init.c
In file included from ../../../cpukit/include/rtems/score/percpu.h:43,
                 from ../../../cpukit/include/rtems/score/threaddispatch.h:41,
                 from ../../../testsuites/support/include/tmacros.h:50,
                 from ../../../testsuites/sptests/spstdc17/init.c:34:
../../../cpukit/score/cpu/sparc/include/rtems/score/cpuimpl.h:220:17: warning: file-scope declaration of '_SPARC_Per_CPU_current' specifies 'register' [-Wpedantic]
  220 | register struct Per_CPU_Control *_SPARC_Per_CPU_current __asm__( "g6" );
      |                 ^~~~~~~~~~~~~~~
```

## Steps to reproduce

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5106
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240807/4795eab7/attachment.htm>


More information about the bugs mailing list