diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-02-10 23:10:43 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-02-10 23:10:43 +0000 |
commit | 9bd87fd28215d0759dccb8c647cc26490384ed19 (patch) | |
tree | 3b7147f259c430743258b593dff47d5c7d2ab26a /gcc/stmt.c | |
parent | 3acd59a4987e1ddca355e7e9d795f6b51f87e0ea (diff) | |
download | gcc-9bd87fd28215d0759dccb8c647cc26490384ed19.tar.gz |
* function.c (assign_stack_temp_for_type): Clear best_p
when an exact match is found.
* i386.h (LOCAL_ALIGNMENT): Define.
* function.c (assign_stack_local, assign_outer_stack_local): Use it.
(assign_stack_temp_for_type): New function based on assign_stack_temp.
(assign_stack_temp): Call it.
(assign_temp): Use assign_stack_temp_for_type, not assign_stack_temp.
* stmt.c: Use assign_temp, not assign_stack_temp.
* tm.texi: Document LOCAL_ALIGNMENT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25143 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c index 62f880dd4d2..a565adf6402 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -3495,12 +3495,7 @@ expand_decl (decl) oldaddr = XEXP (DECL_RTL (decl), 0); } - DECL_RTL (decl) - = assign_stack_temp (DECL_MODE (decl), - ((TREE_INT_CST_LOW (DECL_SIZE (decl)) - + BITS_PER_UNIT - 1) - / BITS_PER_UNIT), - 1); + DECL_RTL (decl) = assign_temp (TREE_TYPE (decl), 1, 1, 1); MEM_SET_IN_STRUCT_P (DECL_RTL (decl), AGGREGATE_TYPE_P (TREE_TYPE (decl))); |