aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/ChangeLog4
-rw-r--r--gcc/ada/decl.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 18cbd4a..7dc5d0f 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
+
+ * decl.c (adjust_packed): Expand comment.
+
2008-04-08 Arnaud Charlet <charlet@adacore.com>
* s-tasuti.ads: Use Task_Address instead of System.Address.
diff --git a/gcc/ada/decl.c b/gcc/ada/decl.c
index c45492f..2d4742d 100644
--- a/gcc/ada/decl.c
+++ b/gcc/ada/decl.c
@@ -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;