Handle SIZE_TYPE being unsigned short.

From-SVN: r176995
This commit is contained in:
Richard Henderson 2011-07-31 18:11:04 -07:00 committed by Richard Henderson
parent 77b069404f
commit b87ac61522
3 changed files with 9 additions and 0 deletions

View 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

View 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 ();

View 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 ();