Handle SIZE_TYPE being unsigned short.
authorRichard Henderson <rth@redhat.com>
Mon, 1 Aug 2011 01:11:04 +0000 (18:11 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 1 Aug 2011 01:11:04 +0000 (18:11 -0700)
From-SVN: r176995

gcc/ChangeLog
gcc/stor-layout.c
gcc/tree.c

index 7df0ee2d4bc5b90a6cc47a803989a30665ac909a..a35b0e8f739b7781be27f8613d4460e5ae4216ef 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-31  Richard Henderson  <rth@redhat.com>
+
+       * stor-layout.c (initialize_sizetypes): Handle unsigned short.
+       * tree.c (build_common_tree_nodes): Likewise.
+
 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        PR target/49880
index fee26e6ce9c30d3d87f779cb4090b08a74baa108..8a5c48de920e8bdeb7a05e0e3fa04dd6a1ea2c81 100644 (file)
@@ -2203,6 +2203,8 @@ initialize_sizetypes (void)
     precision = LONG_TYPE_SIZE;
   else if (strcmp (SIZE_TYPE, "long long unsigned int") == 0)
     precision = LONG_LONG_TYPE_SIZE;
+  else if (strcmp (SIZE_TYPE, "short unsigned int") == 0)
+    precision = SHORT_TYPE_SIZE;
   else
     gcc_unreachable ();
 
index 30ff80f152fa1dbaa0fd1e518f8f318acc5b06e5..c474b7344eaf3af44d4c0ca766d0c0fd7fac5be6 100644 (file)
@@ -9228,6 +9228,8 @@ build_common_tree_nodes (bool signed_char, bool short_double)
     size_type_node = long_unsigned_type_node;
   else if (strcmp (SIZE_TYPE, "long long unsigned int") == 0)
     size_type_node = long_long_unsigned_type_node;
+  else if (strcmp (SIZE_TYPE, "short unsigned int") == 0)
+    size_type_node = short_unsigned_type_node;
   else
     gcc_unreachable ();