(expand_call): If PCC_STATIC_STRUCT_RETURN defined, mark
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 4 Apr 1994 21:36:19 +0000 (14:36 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 4 Apr 1994 21:36:19 +0000 (14:36 -0700)
function as addressable same time as we clear is_integrable.

From-SVN: r6964

gcc/calls.c

index 7b4589fb04d60b370fea0f536b4d236e838aa3ee..c02c732a23256ebaff6018da39da5b484db0c0aa 100644 (file)
@@ -631,7 +631,15 @@ expand_call (exp, target, ignore)
 #ifdef PCC_STATIC_STRUCT_RETURN
       {
        pcc_struct_value = 1;
-       is_integrable = 0;  /* Easier than making that case work right.  */
+       /* Easier than making that case work right.  */
+       if (is_integrable)
+         {
+           /* In case this is a static function, note that it has been
+              used.  */
+           if (! TREE_ADDRESSABLE (fndecl))
+             mark_addressable (fndecl);
+           is_integrable = 0;
+         }
       }
 #else /* not PCC_STATIC_STRUCT_RETURN */
       {