From 2edc3b33ce1711a8e093b29afdeca2627a24fe4c Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 15 Sep 1993 23:13:54 -0700 Subject: [PATCH] (function_cannot_inline_p): Don't inline if it's set. From-SVN: r5338 --- gcc/integrate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/integrate.c b/gcc/integrate.c index 308b7babd40..a41e9b6df15 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -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; } -- 2.30.2