rs6000.c (init_cumulative_args): Limit CALL_LIBCALL to ABI_V4.
authorDavid Edelsohn <edelsohn@gnu.org>
Thu, 19 Jun 2003 05:41:36 +0000 (05:41 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Thu, 19 Jun 2003 05:41:36 +0000 (01:41 -0400)
        * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
        to ABI_V4.

From-SVN: r68179

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 37386dc075fec7f7ac75479aa0bb35aa85101d98..96b22e23957328a550d44954b06f02ee8a3d5306 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-19  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
+       to ABI_V4.
+
 2003-06-18  Joseph S. Myers  <jsm@polyomino.org.uk>
 
        PR bootstrap/4068
index f2ece833eff74c4778fdc1ebceb1926fc982b19f..5f7b361c955d99733a8978630bcc17c1e11e1455 100644 (file)
@@ -3653,7 +3653,8 @@ init_cumulative_args (cum, fntype, libname, incoming, libcall)
   cum->fregno = FP_ARG_MIN_REG;
   cum->vregno = ALTIVEC_ARG_MIN_REG;
   cum->prototype = (fntype && TYPE_ARG_TYPES (fntype));
-  cum->call_cookie = libcall ? CALL_LIBCALL : CALL_NORMAL;
+  cum->call_cookie = ((DEFAULT_ABI == ABI_V4 && libcall)
+                     ? CALL_LIBCALL : CALL_NORMAL);
   cum->sysv_gregno = GP_ARG_MIN_REG;
   cum->stdarg = fntype
     && (TYPE_ARG_TYPES (fntype) != 0