+2015-10-21 Marek Polacek <polacek@redhat.com>
+
+ PR c/68024
+ * c-decl.c (start_function): Warn about vararg functions without
+ a prototype.
+
2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
* c-typeck.c (build_conditional_expr): Use boolean vector
&& comptypes (TREE_TYPE (TREE_TYPE (decl1)),
TREE_TYPE (TREE_TYPE (old_decl))))
{
+ if (stdarg_p (TREE_TYPE (old_decl)))
+ {
+ warning_at (loc, 0, "%q+D defined as variadic function "
+ "without prototype", decl1);
+ locate_old_decl (old_decl);
+ }
TREE_TYPE (decl1) = composite_type (TREE_TYPE (old_decl),
TREE_TYPE (decl1));
current_function_prototype_locus = DECL_SOURCE_LOCATION (old_decl);
+2015-10-21 Marek Polacek <polacek@redhat.com>
+
+ PR c/68024
+ * gcc.dg/pr68024.c: New test.
+
2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
* c-c++-common/goacc/clauses-fail.c: Adjust errors.