+2015-06-12 DJ Delorie <dj@redhat.com>
+
+ * lto-lang.c (lto_type_for_size): Include intN types.
+ (lto_type_for_mode): Likewise.
+
2015-06-08 Jan Hubicka <hubicka@ucw.cz>
* lto.c (hash_canonical_type): Drop hashing of TYPE_STRING_FLAG.
static tree
lto_type_for_size (unsigned precision, int unsignedp)
{
+ int i;
+
if (precision == TYPE_PRECISION (integer_type_node))
return unsignedp ? unsigned_type_node : integer_type_node;
? long_long_unsigned_type_node
: long_long_integer_type_node;
+ for (i = 0; i < NUM_INT_N_ENTS; i ++)
+ if (int_n_enabled_p[i]
+ && precision == int_n_data[i].bitsize)
+ return (unsignedp ? int_n_trees[i].unsigned_type
+ : int_n_trees[i].signed_type);
+
if (precision <= TYPE_PRECISION (intQI_type_node))
return unsignedp ? unsigned_intQI_type_node : intQI_type_node;
lto_type_for_mode (machine_mode mode, int unsigned_p)
{
tree t;
+ int i;
if (mode == TYPE_MODE (integer_type_node))
return unsigned_p ? unsigned_type_node : integer_type_node;
if (mode == TYPE_MODE (long_long_integer_type_node))
return unsigned_p ? long_long_unsigned_type_node : long_long_integer_type_node;
+ for (i = 0; i < NUM_INT_N_ENTS; i ++)
+ if (int_n_enabled_p[i]
+ && mode == int_n_data[i].m)
+ return (unsigned_p ? int_n_trees[i].unsigned_type
+ : int_n_trees[i].signed_type);
+
if (mode == QImode)
return unsigned_p ? unsigned_intQI_type_node : intQI_type_node;