Commit 2edc3b33 by Jim Wilson

(function_cannot_inline_p): Don't inline if it's set.

From-SVN: r5338
parent 67664664
...@@ -164,6 +164,10 @@ function_cannot_inline_p (fndecl) ...@@ -164,6 +164,10 @@ function_cannot_inline_p (fndecl)
if (forced_labels) if (forced_labels)
return "function with label addresses used in initializers cannot inline"; 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; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment