[rtems-central commit] spec: Fix RTEMS_DEFINE_GLOBAL_SYMBOL()

Sebastian Huber sebh at rtems.org
Wed Sep 13 08:43:43 UTC 2023


Module:    rtems-central
Branch:    master
Commit:    833e2e48a7fa24e71fbcf1eb1645384c9256bab5
Changeset: http://git.rtems.org/rtems-central/commit/?id=833e2e48a7fa24e71fbcf1eb1645384c9256bab5

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Sep 12 17:52:45 2023 +0200

spec: Fix RTEMS_DEFINE_GLOBAL_SYMBOL()

The availability of a proper RTEMS_DEFINE_GLOBAL_SYMBOL() implementation
depends on __asm__() and thus __GNUC__.

Clarify documentation.

---

 spec/rtems/basedefs/if/define-global-symbol.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/spec/rtems/basedefs/if/define-global-symbol.yml b/spec/rtems/basedefs/if/define-global-symbol.yml
index eb8e1ad4..2a3adb03 100644
--- a/spec/rtems/basedefs/if/define-global-symbol.yml
+++ b/spec/rtems/basedefs/if/define-global-symbol.yml
@@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
   Defines a global symbol with the name and value.
 copyrights:
-- Copyright (C) 2018, 2020 embedded brains GmbH & Co. KG
+- Copyright (C) 2018, 2023 embedded brains GmbH & Co. KG
 definition:
   default:
     attributes: null
@@ -21,7 +21,7 @@ definition:
       params: []
       return: null
     enabled-by:
-    - defined(${/compiler/if/user-label-prefix:/name})
+    - defined(${/compiler/if/gnuc:/name})
 description: |
   This macro shall be placed at file scope.
 enabled-by: true
@@ -44,7 +44,8 @@ params:
 - description: |
     is the value of the symbol.  On the value a macro expansion is performed
     and afterwards it is stringified.  It shall expand to an integer expression
-    understood by the assembler.
+    understood by the assembler.  The value shall be representable in the code
+    model of the ${/glossary/target-arch:/term}.
   dir: null
   name: _value
 return: null



More information about the vc mailing list