too few arguments to function va_start is caught in the gimplifier which is wrong. if (!arglist || !TREE_CHAIN (arglist)) { error ("too few arguments to function %<va_start%>"); *expr_p = build_empty_stmt (); return GS_OK; }
I only added it here from the previous place of expand (which was wrong also). -- Summary: too few arguments to function va_start is caught too late Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26749