(i386_return_pops_args): Libcalls ignore TARGET_RTD.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 12 Dec 1996 13:09:15 +0000 (08:09 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 12 Dec 1996 13:09:15 +0000 (08:09 -0500)
From-SVN: r13294

gcc/config/i386/i386.c

index e069cb495254dd2b6706049796e5957ab9568628..d0b3ac0307a3be4a17815314ad0f601c1b668cd0 100644 (file)
@@ -487,7 +487,7 @@ i386_return_pops_args (fundecl, funtype, size)
      tree funtype;
      int size;
 { 
-  int rtd = TARGET_RTD;
+  int rtd = TARGET_RTD && TREE_CODE (fundecl) != IDENTIFIER_NODE;
 
     /* Cdecl functions override -mrtd, and never pop the stack */
   if (!lookup_attribute ("cdecl", TYPE_ATTRIBUTES (funtype))) {