diff options
author | Richard Henderson <rth@cygnus.com> | 1999-09-05 09:41:44 -0700 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-05 16:41:44 +0000 |
commit | b9096844c1ef68031ce8c52fe25cf86f1e555873 (patch) | |
tree | 42a4e2b5269edea7d2a31419468377ad4f9eae8d /gcc | |
parent | fc6af6e322072f2cbf63d79ae32050db3b08deab (diff) | |
download | gcc-b9096844c1ef68031ce8c52fe25cf86f1e555873.zip gcc-b9096844c1ef68031ce8c52fe25cf86f1e555873.tar.gz gcc-b9096844c1ef68031ce8c52fe25cf86f1e555873.tar.bz2 |
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 <bernds@cygnus.co.uk>
From-SVN: r29127
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/integrate.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6954e88..a52a775 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/integrate.c b/gcc/integrate.c index ce7d773..0092f8f 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; |