* 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 dc85f3b..a47a949 100644 (file)
@@ -1,5 +1,9 @@
 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
        typo in latest change.
 
index 77d00b3..697b92e 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;
 }