Don't use MEM_ALIAS_SET on a REG

From-SVN: r38653
This commit is contained in:
Bernd Schmidt 2001-01-03 12:26:52 +00:00 committed by Bernd Schmidt
parent 1104c18d2f
commit 432fd7347e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-01-01 Bernd Schmidt <bernds@redhat.com>
* builtins.c (expand_builtin_return_addr): Don't use MEM_ALIAS_SET on
a REG rtx.
2001-01-03 Alexandre Oliva <aoliva@redhat.com> 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
* combine.c (simplify_shift_const): Even if we're sign-extracting, * combine.c (simplify_shift_const): Even if we're sign-extracting,

View File

@ -432,8 +432,9 @@ expand_builtin_return_addr (fndecl_code, count, tem)
tem = DYNAMIC_CHAIN_ADDRESS (tem); tem = DYNAMIC_CHAIN_ADDRESS (tem);
#endif #endif
tem = memory_address (Pmode, tem); tem = memory_address (Pmode, tem);
tem = copy_to_reg (gen_rtx_MEM (Pmode, tem)); tem = gen_rtx_MEM (Pmode, tem);
MEM_ALIAS_SET (tem) = get_frame_alias_set (); MEM_ALIAS_SET (tem) = get_frame_alias_set ();
tem = copy_to_reg (tem);
} }
/* For __builtin_frame_address, return what we've got. */ /* For __builtin_frame_address, return what we've got. */