A feedback suggestion missed with the previous commits.
Use build_nonstandard_integer_type to avoid getting
a different type each time this function is called.
gcc/m2/ChangeLog:
* m2/gm2-lang.cc (gm2_type_for_size):
Use build_nonstandard_integer_type.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
else if (bits == LONG_LONG_TYPE_SIZE)
type = long_long_unsigned_type_node;
else
- type = make_unsigned_type (bits);
+ type = build_nonstandard_integer_type (bits,
+ unsignedp);
}
else
{
else if (bits == LONG_LONG_TYPE_SIZE)
type = long_long_integer_type_node;
else
- type = make_signed_type (bits);
+ type = build_nonstandard_integer_type (bits,
+ unsignedp);
}
return type;
}