blob: 41aff6428814b2b5bacd8e3174be0fb696c1a206 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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: |
The effect of the ${../if/packed:/name} macro is not propagated into any
structure, union or C++ class which is member of the structure, union or
C++ class declaration to which the macro is attached.
references: []
requirement-type: functional
text: |
When the code is compiled with the GNU C compiler,
and the ${../if/packed:/name} macro is attached to a
struct, union, or C++ class type definition,
and the ``aligned`` attribute or ${../if/aligned:/name} macro
is not used on the struct, union, or C++ class type definition or
any member thereof,
the ${../if/packed:/name} macro shall cause all structure, union, or class
members to be aligned at one bit for a bit-field member and
one byte otherwise.
type: requirement
|