+2018-09-26 Martin Jambor <mjambor@suse.cz>
+
+ PR c/87347
+ * c-parser.c (warn_for_abs): Bail out if TYPE_ARG_TYPES is NULL. Fix
+ comment.
+
2018-09-17 David Malcolm <dmalcolm@redhat.com>
* c-objc-common.c (range_label_for_type_mismatch::get_text):
}
/* Warn for patterns where abs-like function appears to be used incorrectly,
- gracely ignore any non-abs-like function. The warning location should be
- LOC. FNDECL is the declaration of called function, it must be a
+ gracefully ignore any non-abs-like function. The warning location should
+ be LOC. FNDECL is the declaration of called function, it must be a
BUILT_IN_NORMAL function. ARG is the first and only argument of the
call. */
return;
}
+ if (!TYPE_ARG_TYPES (TREE_TYPE (fndecl)))
+ return;
+
tree ftype = TREE_VALUE (TYPE_ARG_TYPES (TREE_TYPE (fndecl)));
if (TREE_CODE (atype) == COMPLEX_TYPE)
{