diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-20 13:35:00 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-20 13:35:00 +0000 |
commit | 1f5b386928e265df8d8652bf9fe333801cabc145 (patch) | |
tree | 7eba1faebbcca911b3f8e3ac46a9d340e8b72ad9 /gcc/c-decl.c | |
parent | f4857d6e2ad2a7e1f1f002ee551676d46b2eeac2 (diff) | |
download | gcc-1f5b386928e265df8d8652bf9fe333801cabc145.tar.gz |
diagnostic.c (inform): Add an explicit location_t parameter.
2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* diagnostic.c (inform): Add an explicit location_t parameter.
* toplev.h (inform): Update declaration.
* builtins.c: Update all calls to inform.
* c-common.c: Likewise.
* c-decl.c: Likewise.
* c-opts.c: Likewise.
* c-pch.c: Likewise.
* c-pragma.c: Likewise.
* c-typeck.c: Likewise.
* coverage.c: Likewise.
* opts.c: Likewise.
* toplev.c: Likewise.
* tree-cfg.c: Likewise.
* tree-ssa.c: Likewise.
cp/
* parser.c: Update all calls to inform.
* typeck.c: Likewise.
* init.c: Likewise.
* class.c: Likewise.
* call.c: Likewise.
* method.c: Likewise.
* friend.c: Likewise.
* typeck2.c: Likewise.
* pt.c: Likewise.
* name-lookup.c: Likewise.
* lex.c: Likewise.
From-SVN: r139293
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 7be2ca4e60a..2cf0f44d66a 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1029,14 +1029,14 @@ diagnose_arglist_conflict (tree newdecl, tree olddecl, if (TREE_CHAIN (t) == 0 && TYPE_MAIN_VARIANT (type) != void_type_node) { - inform ("a parameter list with an ellipsis can%'t match " + inform (input_location, "a parameter list with an ellipsis can%'t match " "an empty parameter name list declaration"); break; } if (c_type_promotes_to (type) != type) { - inform ("an argument type that has a default promotion can%'t match " + inform (input_location, "an argument type that has a default promotion can%'t match " "an empty parameter name list declaration"); break; } @@ -1120,11 +1120,11 @@ locate_old_decl (tree decl) if (TREE_CODE (decl) == FUNCTION_DECL && DECL_BUILT_IN (decl)) ; else if (DECL_INITIAL (decl)) - inform ("previous definition of %q+D was here", decl); + inform (input_location, "previous definition of %q+D was here", decl); else if (C_DECL_IMPLICIT (decl)) - inform ("previous implicit declaration of %q+D was here", decl); + inform (input_location, "previous implicit declaration of %q+D was here", decl); else - inform ("previous declaration of %q+D was here", decl); + inform (input_location, "previous declaration of %q+D was here", decl); } /* Subroutine of duplicate_decls. Compare NEWDECL to OLDDECL. |