From: Eric Botcazou Date: Wed, 3 Jun 2015 09:28:07 +0000 (+0000) Subject: * gcc-interface/utils.c (copy_type): Also set TYPE_CANONICAL. X-Git-Tag: upstream/12.2.0~54394 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b7bd26024608d543fb33dce0801b9b8c266f15f;p=platform%2Fupstream%2Fgcc.git * gcc-interface/utils.c (copy_type): Also set TYPE_CANONICAL. From-SVN: r224068 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index dc85f3b..a47a949 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,5 +1,9 @@ 2015-06-03 Eric Botcazou + * gcc-interface/utils.c (copy_type): Also set TYPE_CANONICAL. + +2015-06-03 Eric Botcazou + * gcc-interface/trans.c (gnat_to_gnu) : Fix typo in latest change. diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 77d00b3..697b92e 100644 --- a/gcc/ada/gcc-interface/utils.c +++ b/gcc/ada/gcc-interface/utils.c @@ -2191,6 +2191,7 @@ copy_type (tree type) TYPE_REFERENCE_TO (new_type) = 0; TYPE_MAIN_VARIANT (new_type) = new_type; TYPE_NEXT_VARIANT (new_type) = 0; + TYPE_CANONICAL (new_type) = new_type; return new_type; }