aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-10-22 07:14:24 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-10-22 07:14:24 -0400
commit2614aac60401d4e88c516a20016a4c2b23aa78ea (patch)
treeeb71b1622aedb536119e5dc84cda48b4e83e0009 /gcc
parent9374bd85eb0680c7198aa6413ff738c3d31d81b7 (diff)
downloadgcc-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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/i386.c15
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)
{