This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] constrained discriminated records and SRA
Hi,
On Thu, Oct 22, 2009 at 01:40:22PM +0200, Eric Botcazou wrote:
> > So my suggestion would be to remove the whole comment, or replace it
> > with something saying that if looking up stuff in records is deemed
> > too slow in future, we should be able to simplify it now.
>
> FWIW fine with me either way.
I have committed the following change as revision 153751.
Thanks,
Martin
2009-10-30 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (build_ref_for_offset_1): Remove a comment.
Index: mine/gcc/tree-sra.c
===================================================================
--- mine.orig/gcc/tree-sra.c
+++ mine/gcc/tree-sra.c
@@ -1231,8 +1231,6 @@ build_ref_for_offset_1 (tree *res, tree
case UNION_TYPE:
case QUAL_UNION_TYPE:
case RECORD_TYPE:
- /* ??? 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;
>
> --
> Eric Botcazou