(pop_label_level, combine_parm_decls): Correct args in error calls.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 13 Apr 1993 20:56:37 +0000 (16:56 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 13 Apr 1993 20:56:37 +0000 (16:56 -0400)
From-SVN: r4132

gcc/c-decl.c

index 9241b3e237c98885b437037d9ea0a1d4bceb8cd2..fefce7211bbb802a840b5cb537fdb4b021c5a646 100644 (file)
@@ -1158,8 +1158,8 @@ pop_label_level ()
        {
          if (DECL_SOURCE_LINE (TREE_VALUE (link)) == 0)
            {
-             error_with_decl ("label `%s' used but not defined",
-                              TREE_VALUE (link));
+             error_with_decl (TREE_VALUE (link),
+                              "label `%s' used but not defined");
              /* Avoid crashing later.  */
              define_label (input_filename, lineno,
                            DECL_NAME (TREE_VALUE (link)));
@@ -6210,7 +6210,7 @@ combine_parm_decls (specparms, parmlist, void_at_end)
          DECL_ARG_TYPE (found) = TREE_TYPE (found);
          DECL_SOURCE_LINE (found) = DECL_SOURCE_LINE (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);
        }