From 4cfc604201d08c88f367657652cabbcf9203b298 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 24 Jan 2001 19:00:58 +0000 Subject: [PATCH] calls.c (emit_library_call_value_1): Memory slot for pass-by-reference argument should have the mode of the argument... * calls.c (emit_library_call_value_1): Memory slot for pass-by-reference argument should have the mode of the argument, not of the pointer to it. From-SVN: r39242 --- gcc/ChangeLog | 6 ++++++ gcc/calls.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60fcec52e0f..e2fad4851ba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-01-24 Alexandre Oliva + + * calls.c (emit_library_call_value_1): Memory slot for + pass-by-reference argument should have the mode of the argument, + not of the pointer to it. + 2001-01-24 Tom Tromey * gcc.texi (G++ and GCC): Mention gcj manual. diff --git a/gcc/calls.c b/gcc/calls.c index 95dad19f6c1..9c77b879701 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -3695,7 +3695,7 @@ emit_library_call_value_1 (retval, orgfun, value, fn_type, outmode, nargs, p) { tree type = type_for_mode (mode, 0); - slot = gen_rtx_MEM (Pmode, + slot = gen_rtx_MEM (mode, expand_expr (build1 (ADDR_EXPR, build_pointer_type (type), -- 2.30.2