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/calls.c | |
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/calls.c')
-rw-r--r-- | gcc/calls.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 6784bca..605c5ae 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2260,8 +2260,7 @@ expand_call (exp, target, ignore) structure_value_addr = XEXP (target, 0); else { - /* Assign a temporary to hold the value. */ - tree d; + rtx d; /* For variable-sized objects, we must be called with a target specified. If we were to allocate space on the stack here, @@ -2270,14 +2269,9 @@ expand_call (exp, target, ignore) if (struct_value_size < 0) abort (); - /* This DECL is just something to feed to mark_addressable; - it doesn't get pushed. */ - d = build_decl (VAR_DECL, NULL_TREE, TREE_TYPE (exp)); - DECL_RTL (d) = assign_temp (TREE_TYPE (exp), 1, 0, 1); - mark_addressable (d); - mark_temp_addr_taken (DECL_RTL (d)); - structure_value_addr = XEXP (DECL_RTL (d), 0); - TREE_USED (d) = 1; + d = assign_temp (TREE_TYPE (exp), 1, 1, 1); + mark_temp_addr_taken (d); + structure_value_addr = XEXP (d, 0); target = 0; } } |