PR middle-end/16216
* builtins.c (gimplify_va_arg_expr): Check for valist being
an error_mark_node.
From-SVN: r83881
+2004-06-29 Richard Henderson <rth@redhat.com>
+
+ PR middle-end/16216
+ * builtins.c (gimplify_va_arg_expr): Check for valist being
+ an error_mark_node.
+
2004-06-29 Jakub Jelinek <jakub@redhat.com>
PR target/16195
tree t;
/* Verify that valist is of the proper type. */
-
want_va_type = va_list_type_node;
have_va_type = TREE_TYPE (valist);
+
+ if (have_va_type == error_mark_node)
+ return GS_ERROR;
+
if (TREE_CODE (want_va_type) == ARRAY_TYPE)
{
/* If va_list is an array type, the argument may have decayed
--- /dev/null
+/* PR 16216 */
+
+void func()
+{
+ const char *pek; int i;
+ pek=__builtin_va_arg(ap,const char*); /* { dg-error "" } */
+}