+2016-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * decl.c (finish_enum_value_list): Use the specified mode.
+
2016-05-18 Jason Merrill <jason@redhat.com>
* pt.c (value_dependent_expression_p): Tweak new cases to better
use_short_enum = flag_short_enums
|| lookup_attribute ("packed", TYPE_ATTRIBUTES (enumtype));
+ /* If the precision of the type was specified with an attribute and it
+ was too small, give an error. Otherwise, use it. */
+ if (TYPE_PRECISION (enumtype))
+ {
+ if (precision > TYPE_PRECISION (enumtype))
+ error ("specified mode too small for enumeral values");
+ else
+ {
+ use_short_enum = true;
+ precision = TYPE_PRECISION (enumtype);
+ }
+ }
+
for (itk = (use_short_enum ? itk_char : itk_int);
itk != itk_none;
itk++)
+2016-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * c-c++-common/pr69669.c: Check the used mode.
+
2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
PR sanitizer/64354