OSDN Git Service

PR middle-end/24053
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Sep 2005 22:11:12 +0000 (22:11 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Sep 2005 22:11:12 +0000 (22:11 +0000)
* stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104800 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/stor-layout.c

index 477dc88..636014b 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       PR middle-end/24053
+       * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
+
 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
 
        * optabs.c (expand_binop): Initialize first_pass_p.
index 31d8bec..f7bf20b 100644 (file)
@@ -1966,8 +1966,10 @@ set_sizetype (tree type)
   TYPE_PRECISION (t) = precision;
   TYPE_UID (t) = TYPE_UID (bitsizetype);
   TYPE_IS_SIZETYPE (t) = 1;
+
   /* Replace our original stub bitsizetype.  */
   memcpy (bitsizetype, t, tree_size (bitsizetype));
+  TYPE_MAIN_VARIANT (bitsizetype) = bitsizetype;
   
   if (TYPE_UNSIGNED (type))
     {