From 92eee8f857578d00623714f22fa9ec1a71ff6b9e Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sun, 25 Mar 2012 17:21:49 +0000 Subject: decl.c (gnat_to_gnu_entity): Copy the TYPE_PACKED flag from the base type. * gcc-interface/decl.c (gnat_to_gnu_entity) : Copy the TYPE_PACKED flag from the base type. From-SVN: r185782 --- gcc/ada/gcc-interface/decl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/ada/gcc-interface/decl.c') diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index abd5185..b925f42 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -3263,6 +3263,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) gnu_type = make_node (RECORD_TYPE); TYPE_NAME (gnu_type) = gnu_entity_name; + TYPE_PACKED (gnu_type) = TYPE_PACKED (gnu_base_type); /* Set the size, alignment and alias set of the new type to match that of the old one, doing required substitutions. */ -- cgit v1.1