diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-08-29 16:23:20 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-08-29 16:23:20 +0000 |
commit | 4361b41d838b11e957dfb751d55298bd1d1b1a55 (patch) | |
tree | b04c965157f31a59a49b3963cd4d9793bb84fcf4 /gcc/cp | |
parent | 9b1ee05b0e2a948a2612dcc6b9835a91ee855f99 (diff) | |
download | gcc-4361b41d838b11e957dfb751d55298bd1d1b1a55.zip gcc-4361b41d838b11e957dfb751d55298bd1d1b1a55.tar.gz gcc-4361b41d838b11e957dfb751d55298bd1d1b1a55.tar.bz2 |
calls.c (expand_call): Don't create a VAR_DECL just to throw it away.
* 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.
From-SVN: r36038
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 15 |
2 files changed, 5 insertions, 15 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c9224cf..325872d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-08-29 Mark Mitchell <mark@codesourcery.com> + + * typeck.c (mark_addressable): Remove code that pokes around in + RTL. + 2000-08-28 Jason Merrill <jason@redhat.com> * lex.c (file_name_nondirectory): Move to toplev.c. diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 964993d..015df0e 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: |