[RTEMS Project] #2289: rtems_ada_self is broken on SMP

RTEMS trac trac at rtems.org
Tue May 23 08:01:53 UTC 2017


#2289: rtems_ada_self is broken on SMP
-----------------------------+----------------------------
 Reporter:  Sebastian Huber  |       Owner:  Needs Funding
     Type:  defect           |      Status:  reopened
 Priority:  normal           |   Milestone:  Indefinite
Component:  Ada              |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+----------------------------
Changes (by Sebastian Huber):

 * status:  closed => reopened
 * version:  4.11 =>
 * resolution:  duplicate =>


Comment:

 One option is to use TLS, e.g.
 {{{
 diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-
 interface/Makefile.in
 index 598b262d914..5e1c5286d63 100644
 --- a/gcc/ada/gcc-interface/Makefile.in
 +++ b/gcc/ada/gcc-interface/Makefile.in
 @@ -1743,7 +1743,7 @@ ifeq ($(strip $(filter-out rtems%,$(target_os))),)
    s-parame.adb<s-parame-rtems.adb \
    s-taprop.adb<s-taprop-posix.adb \
    s-taspri.ads<s-taspri-posix.ads \
 -  s-tpopsp.adb<s-tpopsp-rtems.adb \
 +  s-tpopsp.adb<s-tpopsp-tls.adb \
    s-stchop.adb<s-stchop-rtems.adb \
    s-interr.adb<s-interr-hwint.adb
  endif
 }}}
 Another option is to use POSIX keys:
 {{{
 diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-
 interface/Makefile.in
 index 598b262d914..5e1c5286d63 100644
 --- a/gcc/ada/gcc-interface/Makefile.in
 +++ b/gcc/ada/gcc-interface/Makefile.in
 @@ -1743,7 +1743,7 @@ ifeq ($(strip $(filter-out rtems%,$(target_os))),)
    s-parame.adb<s-parame-rtems.adb \
    s-taprop.adb<s-taprop-posix.adb \
    s-taspri.ads<s-taspri-posix.ads \
 -  s-tpopsp.adb<s-tpopsp-rtems.adb \
 +  s-tpopsp.adb<s-tpopsp-posix.adb \
    s-stchop.adb<s-stchop-rtems.adb \
    s-interr.adb<s-interr-hwint.adb
  endif
 }}}
 I tend to use TLS since it has less overhead.

--
Ticket URL: <http://devel.rtems.org/ticket/2289#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list