+2020-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
+
+ * c-attribs.c (handle_vector_size_attribute): Add attribute
+ nonnull for argument args in order to silence warning of
+ uninitialized variable usage. Since this is local to the
+ compilation unit and thus cannot be checked at call sides by the
+ compiler, added an assert statement in order to verify this.
+
2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
PR target/93492
static tree handle_tm_wrap_attribute (tree *, tree, tree, int, bool *);
static tree handle_novops_attribute (tree *, tree, tree, int, bool *);
static tree handle_vector_size_attribute (tree *, tree, tree, int,
- bool *);
+ bool *) ATTRIBUTE_NONNULL(3);
static tree handle_nonnull_attribute (tree *, tree, tree, int, bool *);
static tree handle_nonstring_attribute (tree *, tree, tree, int, bool *);
static tree handle_nothrow_attribute (tree *, tree, tree, int, bool *);
if (!type)
return NULL_TREE;
+ gcc_checking_assert (args != NULL);
+
tree new_type = build_vector_type (type, nunits);
/* Build back pointers if needed. */