aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-10-20 23:46:55 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-10-20 21:46:55 +0000
commitd4d1ebc191e5c1d00266d9c0207c5dde69f5e216 (patch)
treee0577f027de65a595f0d08d2ce877c7af9b5a347 /gcc/cp/decl.c
parentce01559bb70b9d2af4bb3e91866167440c5a66f8 (diff)
downloadgcc-d4d1ebc191e5c1d00266d9c0207c5dde69f5e216.zip
gcc-d4d1ebc191e5c1d00266d9c0207c5dde69f5e216.tar.gz
gcc-d4d1ebc191e5c1d00266d9c0207c5dde69f5e216.tar.bz2
toplev.c (rest_of_compilation): Fix webizer pass ordering.
* toplev.c (rest_of_compilation): Fix webizer pass ordering. * cgraphunit.c (decide_is_function_needed): Fix test dealing with functions implicitly made inline. * cgraphunit.c (cgraph_decide_inlining_incrementally): New function. (cgraph_finalize_function): Use it. (cgraph_mark_inline): Allow incrmental decisions * invoke.texi (max-inline-slope, min-inline-insns): Kill. * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill. * tree-inline.c (limits_allow_inlining): Kill. (expand_call_inline): Always use unit-at-a-time path. * decl.c (start_cleanup_fn): Set DECL_DECLARED_INLINE_P to deffer the expansion. * testsuite/g++.dg/opt/inline4.C: Do not use min-inline-insns parameter. * testsuite/gcc.dg/inline-2.c: Likewise. From-SVN: r72721
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 8ca69d1..0f1170c 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -5073,6 +5073,8 @@ start_cleanup_fn (void)
it is only called via a function pointer, but we avoid unnecessary
emissions this way. */
DECL_INLINE (fndecl) = 1;
+ DECL_DECLARED_INLINE_P (fndecl) = 1;
+ DECL_INTERFACE_KNOWN (fndecl) = 1;
/* Build the parameter. */
if (flag_use_cxa_atexit)
{