diff options
author | Frank Kühndel <frank.kuehndel@embedded-brains.de> | 2020-12-02 11:17:34 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-12-09 08:13:51 +0100 |
commit | 6856765a1d447ef914887a8279b3e12ac8775dee (patch) | |
tree | 703b5fc092314eeed7fd4f262c2b7e7cccff95cb /spec/rtems/basedefs/req/weak-alias-1.yml | |
parent | config.yml: Add extra file (diff) | |
download | rtems-central-6856765a1d447ef914887a8279b3e12ac8775dee.tar.bz2 |
spec: Requirements and validation for basedefs.h
Diffstat (limited to 'spec/rtems/basedefs/req/weak-alias-1.yml')
-rw-r--r-- | spec/rtems/basedefs/req/weak-alias-1.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/req/weak-alias-1.yml b/spec/rtems/basedefs/req/weak-alias-1.yml new file mode 100644 index 00000000..b8d26585 --- /dev/null +++ b/spec/rtems/basedefs/req/weak-alias-1.yml @@ -0,0 +1,34 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +enabled-by: true +links: +- role: requirement-refinement + uid: ../if/weak-alias +non-functional-type: interface +rationale: | + The other function at global scope with the same name as + ``newname`` can possibly be defined in + another compilation unit and linked with the compilation + unit containing the function defined with ${../if/weak-alias:/name}. +references: [] +requirement-type: non-functional +text: | + When the code is compiled with the GNU C compiler, + and the produced target file format is ELF or a.out, + and argument ${../if/weak-alias:/params[0]/name} is a name of a function, + and the macro ${../if/weak-alias:/name} call is in the same compilation unit + as the function, + and the macro is not used in block scope, + and the macro is used in this form: + ``<return-type> newname([argument-type-list]) ${../if/weak-alias:/name}(oldname)``;, + and the ``<return-type>`` and ``argument-type-list`` match the + signature of the function ``oldname``, + and there is another function symbol at global scope with the same name as + ``newname``, + and this other function is not defined with the ${../if/weak:/name} macro or + otherwise defined or declared ``weak``, + and both functions have the same type, + the ${../if/weak-alias:/name} macro shall cause the code to behave as if + the function defined with the ${../if/weak-alias:/name} macro does not exist. +type: requirement |