Commit 6b2a374b by Richard Kenner

(pop_label_level, combine_parm_decls): Correct args in error calls.

From-SVN: r4132
parent f1644e9a
...@@ -1158,8 +1158,8 @@ pop_label_level () ...@@ -1158,8 +1158,8 @@ pop_label_level ()
{ {
if (DECL_SOURCE_LINE (TREE_VALUE (link)) == 0) if (DECL_SOURCE_LINE (TREE_VALUE (link)) == 0)
{ {
error_with_decl ("label `%s' used but not defined", error_with_decl (TREE_VALUE (link),
TREE_VALUE (link)); "label `%s' used but not defined");
/* Avoid crashing later. */ /* Avoid crashing later. */
define_label (input_filename, lineno, define_label (input_filename, lineno,
DECL_NAME (TREE_VALUE (link))); DECL_NAME (TREE_VALUE (link)));
...@@ -6210,7 +6210,7 @@ combine_parm_decls (specparms, parmlist, void_at_end) ...@@ -6210,7 +6210,7 @@ combine_parm_decls (specparms, parmlist, void_at_end)
DECL_ARG_TYPE (found) = TREE_TYPE (found); DECL_ARG_TYPE (found) = TREE_TYPE (found);
DECL_SOURCE_LINE (found) = DECL_SOURCE_LINE (fndecl); DECL_SOURCE_LINE (found) = DECL_SOURCE_LINE (fndecl);
DECL_SOURCE_FILE (found) = DECL_SOURCE_FILE (fndecl); DECL_SOURCE_FILE (found) = DECL_SOURCE_FILE (fndecl);
error (found, "type of parameter `%s' is not declared"); error_with_decl (found, "type of parameter `%s' is not declared");
pushdecl (found); pushdecl (found);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment