]> gcc.gnu.org Git - gcc.git/commitdiff
(function_cannot_inline_p): Don't inline if it's set.
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 16 Sep 1993 06:13:54 +0000 (23:13 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 16 Sep 1993 06:13:54 +0000 (23:13 -0700)
From-SVN: r5338

gcc/integrate.c

index 308b7babd40e301dadbc8d1bc9f91f062ad6f0d8..a41e9b6df15fed65820feb837d1ad2d48d2b98af 100644 (file)
@@ -164,6 +164,10 @@ function_cannot_inline_p (fndecl)
   if (forced_labels)
     return "function with label addresses used in initializers cannot inline";
 
+  /* We cannot inline a nested function that jumps to a nonlocal label.  */
+  if (current_function_has_nonlocal_goto)
+    return "function with nonlocal goto cannot be inline";
+
   return 0;
 }
 \f
This page took 0.061136 seconds and 5 git commands to generate.