integrate.c (function_cannot_inline_p): Do not inline functions with forced labels.
authorRichard Henderson <rth@cygnus.com>
Sun, 5 Sep 1999 16:41:44 +0000 (09:41 -0700)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 5 Sep 1999 16:41:44 +0000 (16:41 +0000)
* integrate.c (function_cannot_inline_p): Do not inline
functions with forced labels.

Co-Authored-By: Bernd Schmidt <bernds@cygnus.co.uk>
From-SVN: r29127

gcc/ChangeLog
gcc/integrate.c

index 6954e88..a52a775 100644 (file)
@@ -1,3 +1,9 @@
+Sun Sep  5 09:31:56 1999  Richard Henderson  <rth@cygnus.com>
+                         Bernd Schmidt <bernds@cygnus.co.uk>
+
+       * integrate.c (function_cannot_inline_p): Do not inline
+       functions with forced labels.
+
 Sun Sep  5 00:35:17 1999  Richard Henderson  <rth@cygnus.com>
                          Bernd Schmidt <bernds@cygnus.co.uk>
                          Mark Mitchell  <mark@codesourcery.com>
index ce7d773..0092f8f 100644 (file)
@@ -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;