* function.c (gen_mem_addressof): Handle case where DECL is SAVE_EXPR.

From-SVN: r43408
This commit is contained in:
Richard Kenner 2001-06-15 22:08:42 +00:00 committed by Richard Kenner
parent f6261a8a6f
commit b927dc2237
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,7 @@
Fri Jun 15 18:05:22 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* function.c (gen_mem_addressof): Handle case where DECL is SAVE_EXPR.
* explow.c (expr_size): If DECL and size specified, use it.
2001-06-15 Zack Weinberg <zackw@stanford.edu>

View file

@ -2873,8 +2873,11 @@ gen_mem_addressof (reg, decl)
if (decl)
{
tree type = TREE_TYPE (decl);
enum machine_mode decl_mode
= (TREE_CODE (decl) == SAVE_EXPR ? TYPE_MODE (TREE_TYPE (decl))
: DECL_MODE (decl));
PUT_MODE (reg, DECL_MODE (decl));
PUT_MODE (reg, decl_mode);
MEM_VOLATILE_P (reg) = TREE_SIDE_EFFECTS (decl);
MEM_SET_IN_STRUCT_P (reg, AGGREGATE_TYPE_P (type));
MEM_ALIAS_SET (reg) = get_alias_set (decl);