summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/pure.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rtems/basedefs/if/pure.yml')
-rw-r--r--spec/rtems/basedefs/if/pure.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/if/pure.yml b/spec/rtems/basedefs/if/pure.yml
new file mode 100644
index 00000000..f5c946a4
--- /dev/null
+++ b/spec/rtems/basedefs/if/pure.yml
@@ -0,0 +1,25 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+brief: |
+ Tells the compiler in a function declaration that this function has no effect
+ except the return value and that the return value depends only on the value
+ of parameters and/or global variables.
+copyrights:
+- Copyright (C) 2011 On-Line Applications Research Corporation (OAR)
+definition:
+ default: ''
+ variants:
+ - definition: |
+ __attribute__((__pure__))
+ enabled-by:
+ - defined(${/compiler/if/gnuc:/name})
+description: null
+enabled-by: true
+interface-type: define
+links:
+- role: interface-placement
+ uid: header
+- role: interface-ingroup
+ uid: group
+name: RTEMS_PURE
+notes: null
+type: interface