aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2008-04-08 10:34:15 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2008-04-08 10:34:15 +0000
commit373140ef746ba530ad7d3ff56c9e6aea4aacdf0f (patch)
tree43b623568e4f3f6fa2284da8cf2bde093578c6d4 /gcc
parent903b30032861bc93d95e0d12bf7e53804a62d240 (diff)
downloadgcc-373140ef746ba530ad7d3ff56c9e6aea4aacdf0f.zip
gcc-373140ef746ba530ad7d3ff56c9e6aea4aacdf0f.tar.gz
gcc-373140ef746ba530ad7d3ff56c9e6aea4aacdf0f.tar.bz2
decl.c (adjust_packed): Expand comment.
* decl.c (adjust_packed): Expand comment. From-SVN: r134091
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;