summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/packed-0.yml
blob: 2a6085bee2207986fca2b6af6144f8132d5fe9e7 (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 (http://www.embedded-brains.de)
enabled-by: true
links:
- role: requirement-refinement
  uid: ../if/packed
non-functional-type: interface
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: non-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