]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
authorJason Merrill <jason@redhat.com>
Sat, 4 Apr 2009 04:28:19 +0000 (00:28 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 4 Apr 2009 04:28:19 +0000 (00:28 -0400)
From-SVN: r145531

gcc/ChangeLog
gcc/stor-layout.c

index bc1d68e9094b94b0c8191494141186876f5aa744..817d483d38cd474eb4e2ccec6da85ca1dc2d98b0 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-03  Jason Merrill  <jason@redhat.com>
+
+       * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
+
 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
 
        * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
index 581cb89d3c6c393abc2e7e3ede423725ede6b214..e7036827a0cf7ffa97085afb6ba0c7fde87cef12 100644 (file)
@@ -2070,6 +2070,7 @@ set_sizetype (tree type)
   /* Replace our original stub sizetype.  */
   memcpy (sizetype, t, tree_size (sizetype));
   TYPE_MAIN_VARIANT (sizetype) = sizetype;
+  TYPE_CANONICAL (sizetype) = sizetype;
 
   t = make_node (INTEGER_TYPE);
   TYPE_NAME (t) = get_identifier ("bit_size_type");
@@ -2084,6 +2085,7 @@ set_sizetype (tree type)
   /* Replace our original stub bitsizetype.  */
   memcpy (bitsizetype, t, tree_size (bitsizetype));
   TYPE_MAIN_VARIANT (bitsizetype) = bitsizetype;
+  TYPE_CANONICAL (bitsizetype) = bitsizetype;
 
   if (TYPE_UNSIGNED (type))
     {