summaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-03 12:26:52 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-03 12:26:52 +0000
commit83fc1478082363ff4e15b77205326b2eefc8f9d6 (patch)
tree1f89ac3dc3c16bc754778ba4388123ae56da652f /gcc/builtins.c
parentf847de157fc568816093b002cfc14d03467f8317 (diff)
downloadgcc-83fc1478082363ff4e15b77205326b2eefc8f9d6.tar.gz
Don't use MEM_ALIAS_SET on a REG
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38653 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 7cc917a7a1f..70a4b89be36 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -432,8 +432,9 @@ expand_builtin_return_addr (fndecl_code, count, tem)
tem = DYNAMIC_CHAIN_ADDRESS (tem);
#endif
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 ();
+ tem = copy_to_reg (tem);
}
/* For __builtin_frame_address, return what we've got. */