diff options
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b4c60b6..6460314 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2015-05-21 Marek Polacek <polacek@redhat.com> + + * typeck.c (warn_args_num): Don't print "declare here" for builtins. + 2015-05-20 Jason Merrill <jason@redhat.com> * pt.c (tsubst_decl) [VAR_DECL]: SET_DECL_IMPLICIT_INSTANTIATION diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index ba99c30..fef4f4f 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -3598,8 +3598,8 @@ warn_args_num (location_t loc, tree fndecl, bool too_many_p) ? G_("too many arguments to function %q#D") : G_("too few arguments to function %q#D"), fndecl); - inform (DECL_SOURCE_LOCATION (fndecl), - "declared here"); + if (!DECL_IS_BUILTIN (fndecl)) + inform (DECL_SOURCE_LOCATION (fndecl), "declared here"); } else { |