(i386_return_pops_args): Don't need a FUNDECL to check for type
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 22 Oct 1995 11:14:24 +0000 (07:14 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 22 Oct 1995 11:14:24 +0000 (07:14 -0400)
attributes in FUNTYPE.

From-SVN: r10501

gcc/config/i386/i386.c

index 68aabfb8798f65d44eafc9774219d033201d5ecc..48c58a09d8e56f8630e38c2f061c83889df29090 100644 (file)
@@ -386,16 +386,13 @@ i386_return_pops_args (fundecl, funtype, size)
   if (TREE_CODE (funtype) == IDENTIFIER_NODE)
     return 0;
 
-  if (fundecl && TREE_CODE_CLASS (TREE_CODE (fundecl)) == 'd')
-    {
-      /* Cdecl functions override -mrtd, and never pop the stack */
-      if (lookup_attribute ("cdecl", TYPE_ATTRIBUTES (funtype)))
-       return 0;
+  /* Cdecl functions override -mrtd, and never pop the stack */
+  if (lookup_attribute ("cdecl", TYPE_ATTRIBUTES (funtype)))
+    return 0;
 
-      /* Stdcall functions will pop the stack if not variable args */
-      if (lookup_attribute ("stdcall", TYPE_ATTRIBUTES (funtype)))
-       rtd = 1;
-    }
+  /* Stdcall functions will pop the stack if not variable args */
+  if (lookup_attribute ("stdcall", TYPE_ATTRIBUTES (funtype)))
+    rtd = 1;
 
   if (rtd)
     {