* gcc-interface/utils.c (copy_type): Also set TYPE_CANONICAL.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 3 Jun 2015 09:28:07 +0000 (09:28 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 3 Jun 2015 09:28:07 +0000 (09:28 +0000)
From-SVN: r224068

gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c

index dc85f3bb39228d2ed359763e30d750e25f30fbfd..a47a949895fdafc60e4fa2ec76cefaa87ac116a0 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-03  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/utils.c (copy_type): Also set TYPE_CANONICAL.
+
 2015-06-03  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/trans.c (gnat_to_gnu) <N_Simple_Return_Statement>: Fix
index 77d00b325f39b03ea996dc227abf1d72b0d7faf6..697b92eca6144bebca99135b6f6f2348abc950a8 100644 (file)
@@ -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;
 }