diff options
author | Richard Henderson <rth@redhat.com> | 2011-07-31 18:11:04 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-07-31 18:11:04 -0700 |
commit | b87ac615229c744d036421c5252034ac778291d9 (patch) | |
tree | de634a8fe246f80e01518574db298753b455e274 | |
parent | 77b069404f8f475b569c99b75aad633edb73ea2a (diff) | |
download | gcc-b87ac615229c744d036421c5252034ac778291d9.zip gcc-b87ac615229c744d036421c5252034ac778291d9.tar.gz gcc-b87ac615229c744d036421c5252034ac778291d9.tar.bz2 |
Handle SIZE_TYPE being unsigned short.
From-SVN: r176995
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/stor-layout.c | 2 | ||||
-rw-r--r-- | gcc/tree.c | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7df0ee2..a35b0e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index fee26e6..8a5c48d 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -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 (); @@ -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 (); |