diff options
author | Jan Hubicka <jh@suse.cz> | 2007-01-20 01:30:19 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2007-01-20 00:30:19 +0000 |
commit | 77dbd49bdca1963e363a97c5020e667bbf005daa (patch) | |
tree | 9a7ac3868da3d5d4e118caceae8acb3117c32946 | |
parent | f03b515897bb72e5bba8868844e1d05d23f647b5 (diff) | |
download | gcc-77dbd49bdca1963e363a97c5020e667bbf005daa.zip gcc-77dbd49bdca1963e363a97c5020e667bbf005daa.tar.gz gcc-77dbd49bdca1963e363a97c5020e667bbf005daa.tar.bz2 |
decl2.c (start_objects, [...]): Do not make the functions uninlinable.
* decl2.c (start_objects, start_static_storage_duration_function):
Do not make the functions uninlinable.
From-SVN: r120992
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 13 |
2 files changed, 6 insertions, 12 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5123c18..9e09bb2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2007-01-20 Jan Hubicka <jh@suse.cz> + + * decl2.c (start_objects, start_static_storage_duration_function): + Do not make the functions uninlinable. + 2007-01-17 Ian Lance Taylor <iant@google.com> * class.c (add_method): Call VEC_reserve_exact rather than passing diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index e3e8d08..69c260c 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2340,13 +2340,6 @@ start_objects (int method_type, int initp) body = begin_compound_stmt (BCS_FN_BODY); - /* We cannot allow these functions to be elided, even if they do not - have external linkage. And, there's no point in deferring - compilation of these functions; they're all going to have to be - out anyhow. */ - DECL_INLINE (current_function_decl) = 0; - DECL_UNINLINABLE (current_function_decl) = 1; - return body; } @@ -2444,6 +2437,7 @@ start_static_storage_duration_function (unsigned count) type); TREE_PUBLIC (ssdf_decl) = 0; DECL_ARTIFICIAL (ssdf_decl) = 1; + DECL_INLINE (ssdf_decl) = 1; /* Put this function in the list of functions to be called from the static constructors and destructors. */ @@ -2497,11 +2491,6 @@ start_static_storage_duration_function (unsigned count) /* Set up the scope of the outermost block in the function. */ body = begin_compound_stmt (BCS_FN_BODY); - /* This function must not be deferred because we are depending on - its compilation to tell us what is TREE_SYMBOL_REFERENCED. */ - DECL_INLINE (ssdf_decl) = 0; - DECL_UNINLINABLE (ssdf_decl) = 1; - return body; } |