diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-15 12:46:07 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-15 12:46:07 +0000 |
commit | d2010b0467ba325c1e8c52b20f776830c191b165 (patch) | |
tree | af8f6b819cf8320c57100f0ded0f5d0bdbae5c96 /gcc/cp/decl2.c | |
parent | f3e1a7275a876f9e90ea46dc57fa7352f39cb892 (diff) | |
download | gcc-d2010b0467ba325c1e8c52b20f776830c191b165.tar.gz |
gcc/ChangeLog:
2004-06-15 Paolo Bonzini <bonzini@gnu.org>
* function.h (struct function): Remove cannot_inline field.
(current_function_cannot_inline): Remove.
* passes.c (rest_of_compilation): Reset DECL_DEFER_OUTPUT.
Simplify conditionals to ignore warn_return_type.
* tree-optimize.c (tree_rest_of_compilation): Do not reset
DECL_DEFER_OUTPUT.
* objc/objc-act.c (build_module_descriptor, finish_method_def):
Do not set current_function_cannot_inline.
gcc/java/ChangeLog:
2004-06-15 Paolo Bonzini <bonzini@gnu.org>
* class.c (emit_register_classes): Make the function uninlinable,
do not set current_function_cannot_inline.
* resource.c (write_resource_constructor): Do not reset
flag_inline_functions around rest_of_compilation.
gcc/cp/ChangeLog:
2004-06-15 Paolo Bonzini <bonzini@gnu.org>
* cp-tree.h (struct language_function): Remove cannot_inline.
* decl.c (save_function_data): cannot_inline is no more.
(cxx_push_function_context): Likewise.
* decl2.c (start_objects, start_static_storage_duration_function):
Reset DECL_INLINE, set DECL_UNINLINABLE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83181 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 038fea00879..57e3224e91f 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1976,8 +1976,8 @@ start_objects (int method_type, int initp) have external linkage. And, there's no point in deferring compilation of thes functions; they're all going to have to be out anyhow. */ - current_function_cannot_inline - = "static constructors and destructors cannot be inlined"; + DECL_INLINE (current_function_decl) = 0; + DECL_UNINLINABLE (current_function_decl) = 1; return body; } @@ -2131,8 +2131,8 @@ start_static_storage_duration_function (unsigned count) /* This function must not be deferred because we are depending on its compilation to tell us what is TREE_SYMBOL_REFERENCED. */ - current_function_cannot_inline - = "static storage duration functions cannot be inlined"; + DECL_INLINE (ssdf_decl) = 0; + DECL_UNINLINABLE (ssdf_decl) = 1; return body; } |