aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2009-10-16 06:56:34 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2009-10-16 06:56:34 +0000
commitd7c79c4daa148400da0969fa970a54b80cd87bda (patch)
treea3595d33fd9b31e9e6d5d72c32c68d3c1ae00d03
parentc68e7b86312e3153c910720201e8d30bfa7cfed0 (diff)
downloadgcc-d7c79c4daa148400da0969fa970a54b80cd87bda.zip
gcc-d7c79c4daa148400da0969fa970a54b80cd87bda.tar.gz
gcc-d7c79c4daa148400da0969fa970a54b80cd87bda.tar.bz2
* tree-sra.c (build_ref_for_offset_1): Update comment.
From-SVN: r152893
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-sra.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index aed8f32..b51f648 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-16 Eric Botcazou <ebotcazou@adacore.com>
+
+ * tree-sra.c (build_ref_for_offset_1): Update comment.
+
2009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
* config/s390/s390.md (atype): Added missing values.
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index 3922c22..dd3f680 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -1231,7 +1231,8 @@ build_ref_for_offset_1 (tree *res, tree type, HOST_WIDE_INT offset,
case UNION_TYPE:
case QUAL_UNION_TYPE:
case RECORD_TYPE:
- /* Some ADA records are half-unions, treat all of them the same. */
+ /* ??? Some records used to be half-unions in Ada so the code treats
+ the 3 container types the same. This has been fixed in Ada. */
for (fld = TYPE_FIELDS (type); fld; fld = TREE_CHAIN (fld))
{
HOST_WIDE_INT pos, size;