From 4b7bd26024608d543fb33dce0801b9b8c266f15f Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 3 Jun 2015 09:28:07 +0000 Subject: [PATCH] * gcc-interface/utils.c (copy_type): Also set TYPE_CANONICAL. From-SVN: r224068 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/gcc-interface/utils.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index dc85f3bb392..a47a949895f 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +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 diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c index 77d00b325f3..697b92eca61 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; } -- 2.30.2