aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-03-30 03:51:12 +0000
committerAlan Modra <amodra@gcc.gnu.org>2005-03-30 13:21:12 +0930
commit6f6e8901fbd26fe685ee5493c9a2d666596bdea6 (patch)
tree834aa6a4528876c7d8d36898fe5367d7f65b6754 /gcc/builtins.c
parente6e375cc1b68818bb1b1cd617a11d16d63f42fba (diff)
downloadgcc-6f6e8901fbd26fe685ee5493c9a2d666596bdea6.zip
gcc-6f6e8901fbd26fe685ee5493c9a2d666596bdea6.tar.gz
gcc-6f6e8901fbd26fe685ee5493c9a2d666596bdea6.tar.bz2
re PR target/20203 (unrecognizable insn when using long long and memset)
PR target/20203 * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL. Remove convert_memory_address call duplicating that in memory_address. From-SVN: r97233
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 23bb429..68b91c5 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -979,12 +979,8 @@ expand_builtin_prefetch (tree arglist)
static rtx
get_memory_rtx (tree exp)
{
- rtx addr = expand_expr (exp, NULL_RTX, ptr_mode, EXPAND_SUM);
- rtx mem;
-
- addr = convert_memory_address (Pmode, addr);
-
- mem = gen_rtx_MEM (BLKmode, memory_address (BLKmode, addr));
+ rtx addr = expand_expr (exp, NULL_RTX, ptr_mode, EXPAND_NORMAL);
+ rtx mem = gen_rtx_MEM (BLKmode, memory_address (BLKmode, addr));
/* Get an expression we can use to find the attributes to assign to MEM.
If it is an ADDR_EXPR, use the operand. Otherwise, dereference it if