From 2614aac60401d4e88c516a20016a4c2b23aa78ea Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 22 Oct 1995 07:14:24 -0400 Subject: [PATCH] (i386_return_pops_args): Don't need a FUNDECL to check for type attributes in FUNTYPE. From-SVN: r10501 --- gcc/config/i386/i386.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 68aabfb8798..48c58a09d8e 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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) { -- 2.30.2