diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-10-22 07:14:24 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-10-22 07:14:24 -0400 |
commit | 2614aac60401d4e88c516a20016a4c2b23aa78ea (patch) | |
tree | eb71b1622aedb536119e5dc84cda48b4e83e0009 | |
parent | 9374bd85eb0680c7198aa6413ff738c3d31d81b7 (diff) | |
download | gcc-2614aac60401d4e88c516a20016a4c2b23aa78ea.zip gcc-2614aac60401d4e88c516a20016a4c2b23aa78ea.tar.gz gcc-2614aac60401d4e88c516a20016a4c2b23aa78ea.tar.bz2 |
(i386_return_pops_args): Don't need a FUNDECL to check for type
attributes in FUNTYPE.
From-SVN: r10501
-rw-r--r-- | gcc/config/i386/i386.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 68aabfb..48c58a0 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) { |