From b9096844c1ef68031ce8c52fe25cf86f1e555873 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 5 Sep 1999 09:41:44 -0700 Subject: [PATCH] integrate.c (function_cannot_inline_p): Do not inline functions with forced labels. * integrate.c (function_cannot_inline_p): Do not inline functions with forced labels. Co-Authored-By: Bernd Schmidt From-SVN: r29127 --- gcc/ChangeLog | 6 ++++++ gcc/integrate.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6954e886c73..a52a7750e84 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Sun Sep 5 09:31:56 1999 Richard Henderson + Bernd Schmidt + + * integrate.c (function_cannot_inline_p): Do not inline + functions with forced labels. + Sun Sep 5 00:35:17 1999 Richard Henderson Bernd Schmidt Mark Mitchell diff --git a/gcc/integrate.c b/gcc/integrate.c index ce7d773912f..0092f8f0022 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -148,6 +148,9 @@ function_cannot_inline_p (fndecl) if (current_function_contains_functions) return N_("function with nested functions cannot be inline"); + if (forced_labels) + return "function with label addresses used in initializers cannot inline"; + if (current_function_cannot_inline) return current_function_cannot_inline; -- 2.30.2