diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-04-07 13:34:10 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-05-02 12:43:15 +0000 |
commit | 764dfcb97f5728cb7f4a20f38b3df5f8bd00e05f (patch) | |
tree | 30b16069a01cdb363bdccd53b6b1f73f03ea9bdd /backends | |
parent | cb951df3eaff5228d3900f38b71e550425b72670 (diff) |
Make sure packed structs follow the gcc memory layout
On windows gcc by default generates code that follows the MSVC layout.
We don't want that as it adds extra padding.
Change-Id: I92efe5da2a2ad818783707ee96a9b8e0eb606dbd
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'backends')
-rw-r--r-- | backends/linux-core-note.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/linux-core-note.c b/backends/linux-core-note.c index 67638d70..08282ba4 100644 --- a/backends/linux-core-note.c +++ b/backends/linux-core-note.c @@ -111,7 +111,7 @@ struct EBLHOOK(prstatus) FIELD (INT, pr_fpvalid); } #ifdef ALIGN_PRSTATUS - __attribute__ ((packed, aligned (ALIGN_PRSTATUS))) + attribute_packed __attribute__ ((aligned (ALIGN_PRSTATUS))) #endif ; |