]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
entered into RCS
authorRichard Stallman <rms@gnu.org>
Thu, 4 Jun 1992 21:30:48 +0000 (21:30 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 4 Jun 1992 21:30:48 +0000 (21:30 +0000)
From-SVN: r1159

gcc/c-decl.c

index 5f24c59e9effdcc430e2c5e19cfe8212b6fc9b69..199708055901d622dc7ca3132f3e62c17a458b82 100644 (file)
@@ -4248,14 +4248,14 @@ get_parm_info (void_at_end)
     {
       tree next = TREE_CHAIN (decl);
 
-      if (TREE_ASM_WRITTEN (decl))
+      if (TREE_CODE (decl) != PARM_DECL)
        {
-         error_with_decl (decl, "parameter `%s' has just a forward declaration");
          TREE_CHAIN (decl) = new_parms;
          new_parms = decl;
        }
-      if (TREE_CODE (decl) != PARM_DECL)
+      else if (TREE_ASM_WRITTEN (decl))
        {
+         error_with_decl (decl, "parameter `%s' has just a forward declaration");
          TREE_CHAIN (decl) = new_parms;
          new_parms = decl;
        }