]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
*** empty log message ***
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 5 Mar 1992 20:22:08 +0000 (12:22 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 5 Mar 1992 20:22:08 +0000 (12:22 -0800)
From-SVN: r397

gcc/integrate.c

index 6e50650020aa9c2b427ba8240cb11671f0837996..3026203d61620f1481d45f038e95ef935bd12a72 100644 (file)
@@ -164,6 +164,16 @@ function_cannot_inline_p (fndecl)
        return "function too large to be inline";
     }
 
+  /* We cannot inline this function if forced_labels is non-zero.  This
+     implies that a label in this function was used as an initializer.
+     Because labels can not be duplicated, all labels in the function
+     will be renamed when it is inlined.  However, there is no way to find
+     and fix all variables initialized with addresses of labels in this
+     function, hence inlining is impossible.  */
+
+  if (forced_labels)
+    return "function with label addresses used in initializers cannot inline";
+
   return 0;
 }
 \f