This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Fix ICE on variant component in packed record
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 8 Apr 2008 12:35:58 +0200
- Subject: Re: [Ada] Fix ICE on variant component in packed record
- References: <200804061541.17452.ebotcazou@adacore.com>
> Fixed by aligning it again, tested on i586-suse-linux, applied on the
> mainline.
And this adds a few words to a related comment.
2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
* decl.c (adjust_packed): Expand comment.
--
Eric Botcazou
Index: decl.c
===================================================================
--- decl.c (revision 134086)
+++ decl.c (working copy)
@@ -5807,7 +5807,9 @@ static int
adjust_packed (tree field_type, tree record_type, int packed)
{
/* If the field contains an item of variable size, we cannot pack it
- because we cannot create temporaries of non-fixed size. */
+ because we cannot create temporaries of non-fixed size in case
+ we need to take the address of the field. See addressable_p and
+ the notes on the addressability issues for further details. */
if (is_variable_size (field_type))
return 0;