summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/if/weak.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rtems/basedefs/if/weak.yml')
-rw-r--r--spec/rtems/basedefs/if/weak.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/rtems/basedefs/if/weak.yml b/spec/rtems/basedefs/if/weak.yml
new file mode 100644
index 00000000..ebd60fb5
--- /dev/null
+++ b/spec/rtems/basedefs/if/weak.yml
@@ -0,0 +1,26 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+brief: |
+ Tells the compiler in a function definition that this function should be
+ weak.
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+definition:
+ default: ''
+ variants:
+ - definition: |
+ __attribute__((__weak__))
+ enabled-by:
+ - defined(${/compiler/if/gnuc:/name})
+description: |
+ Use this attribute for function definitions. Do not use it for function
+ declarations.
+enabled-by: true
+interface-type: define
+links:
+- role: interface-placement
+ uid: header
+- role: interface-ingroup
+ uid: group
+name: RTEMS_WEAK
+notes: null
+type: interface