summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/obfuscate-variable-0.yml
blob: 653c0ab94967202e9d9fb63850041faf1955ef8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
functional-type: function
links:
- role: interface-function
  uid: ../if/obfuscate-variable
rationale: null
references: []
requirement-type: functional
text: |
  When the code is compiled with the GNU C compiler,
  and argument ${../if/obfuscate-variable:/params[0]/name}
  is an automatic variable or function argument,
  and the value of that variable or function argument is of a type
  which fits into a register,
  the ${../if/obfuscate-variable:/name} macro shall prevent the compiler
  from performing optimizations based on the variable value.
type: requirement