From 4b7bd26024608d543fb33dce0801b9b8c266f15f Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 3 Jun 2015 09:28:07 +0000 Subject: * 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 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; } -- cgit v1.1