diff options
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index bd7d44471d8..008fd736abd 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -40,6 +40,7 @@ along with GCC; see the file COPYING3. If not see #include "tree-inline.h" #include "dumpfile.h" #include "gimplify.h" +#include "attribs.h" #include "debug.h" /* Data type for the expressions representing sizes of data types. @@ -1132,7 +1133,7 @@ handle_warn_if_not_align (tree field, unsigned int record_align) if (!warn_if_not_align && warn_packed_not_aligned - && TYPE_USER_ALIGN (type)) + && lookup_attribute ("aligned", TYPE_ATTRIBUTES (type))) { warn_if_not_align = TYPE_ALIGN (type); opt_w = OPT_Wpacked_not_aligned; |