From: Eric Botcazou Date: Fri, 23 Jul 2010 20:19:55 +0000 (+0000) Subject: utils.c (update_pointer_to): In the unconstrained array case, merge the alias set... X-Git-Tag: releases/gcc-4.6.0~5454 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0bfea64bb2be9a8d697cca5ab099f2d251720d4;p=thirdparty%2Fgcc.git utils.c (update_pointer_to): In the unconstrained array case, merge the alias set of the old pointer type. * gcc-interfaces/utils.c (update_pointer_to): In the unconstrained array case, merge the alias set of the old pointer type. From-SVN: r162488 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 1ef253c4494b..29618da8ecdd 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2010-07-23 Eric Botcazou + + * gcc-interfaces/utils.c (update_pointer_to): In the unconstrained + array case, merge the alias set of the old pointer type. + 2010-07-23 Eric Botcazou * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 7752edb4b689..eed426a3cd84 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -3510,6 +3510,7 @@ update_pointer_to (tree old_type, tree new_type) DECL_FIELD_CONTEXT (bounds_field) = new_ptr; for (t = new_ptr; t; last = t, t = TYPE_NEXT_VARIANT (t)) TYPE_FIELDS (t) = TYPE_FIELDS (ptr); + TYPE_ALIAS_SET (new_ptr) = TYPE_ALIAS_SET (ptr); /* Chain PTR and its variants at the end. */ TYPE_NEXT_VARIANT (last) = TYPE_MAIN_VARIANT (ptr);