Commit 2614aac6 by Richard Kenner

(i386_return_pops_args): Don't need a FUNDECL to check for type

attributes in FUNTYPE.

From-SVN: r10501
parent 9374bd85
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment