OSDN Git Service

(i386_return_pops_args): Don't need a FUNDECL to check for type
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Oct 1995 11:14:24 +0000 (11:14 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Oct 1995 11:14:24 +0000 (11:14 +0000)
attributes in FUNTYPE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10501 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i386/i386.c

index 68aabfb..48c58a0 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)
     {