summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/packed-0.yml
blob: 95172337467eeeed8d6ebd2df60f6143130a2993 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2020 embedded brains GmbH & Co. KG
enabled-by: true
functional-type: function
links:
- role: interface-function
  uid: ../if/packed
rationale: |
  Note: The 4.1, 4.2 and 4.3 series of GCC ignore the packed attribute
  on bit-fields of type char.
references: []
requirement-type: functional
text: |
  When the code is compiled with the GNU C compiler,
  and the ${../if/packed:/name} macro is used as last part of a
  structure member declaration,
  and the ``aligned`` attribute or ${../if/aligned:/name} macro
  is not used on this structure member,
  the ${../if/packed:/name} macro shall cause the structure member
  to be aligned at one bit for a bit-field member and one byte otherwise.
type: requirement