diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-29 16:23:20 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-29 16:23:20 +0000 |
commit | 930f0e87e15159578bcf3bc6edb70a2c9bdc5360 (patch) | |
tree | b04c965157f31a59a49b3963cd4d9793bb84fcf4 /gcc/cp/typeck.c | |
parent | 7333de4ccf82d5671ad3e9f6c363980831a4f2b6 (diff) | |
download | ppe42-gcc-930f0e87e15159578bcf3bc6edb70a2c9bdc5360.tar.gz ppe42-gcc-930f0e87e15159578bcf3bc6edb70a2c9bdc5360.zip |
* calls.c (expand_call): Don't create a VAR_DECL just to throw it
away.
* expr.c (expand_expr, case TARGET_EXPR): Don't call
mark_addressable.
* tree.h (get_file_function_name): Remove two duplicate
declarations.
* typeck.c (mark_addressable): Remove code that pokes around in
RTL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36038 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/typeck.c')
-rw-r--r-- | gcc/cp/typeck.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 964993d9392..015df0e78ad 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -4925,19 +4925,6 @@ mark_addressable (exp) return 1; } case VAR_DECL: - if (TREE_STATIC (x) && TREE_READONLY (x) - && DECL_RTL (x) != 0 - && ! DECL_IN_MEMORY_P (x)) - { - TREE_ASM_WRITTEN (x) = 0; - DECL_RTL (x) = 0; - rest_of_decl_compilation (x, 0, - !DECL_FUNCTION_SCOPE_P (x), - 0); - TREE_ADDRESSABLE (x) = 1; - - return 1; - } /* Caller should not be trying to mark initialized constant fields addressable. */ my_friendly_assert (DECL_LANG_SPECIFIC (x) == 0 @@ -4952,8 +4939,6 @@ mark_addressable (exp) cp_warning ("address requested for `%D', which is declared `register'", x); TREE_ADDRESSABLE (x) = 1; - if (cfun && expanding_p) - put_var_into_stack (x); return 1; case FUNCTION_DECL: |