This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH] PPC: Correct SYSV ABI libcall handling


@@ -3470,7 +3471,8 @@ function_arg (cum, mode, type, named)
     {
       if (abi == ABI_V4
          && cum->nargs_prototype < 0
-         && type && (cum->prototype || TARGET_NO_PROTOTYPE))
+         && (cum->call_cookie & CALL_LIBCALL) == 0
+         && (cum->prototype || TARGET_NO_PROTOTYPE))
        {
          /* For the SPE, we need to crxor CR6 always.  */
          if (TARGET_SPE_ABI)

Why is it safe to remove the test of "type" above?  It is completely
subsumed by call_cookie?

David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]