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
This commit is contained in:
Alexandre Oliva 2001-01-24 19:00:58 +00:00 committed by Alexandre Oliva
parent 597dba19e8
commit 4cfc604201
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-01-24 Alexandre Oliva <aoliva@redhat.com>
* 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 <tromey@redhat.com>
* gcc.texi (G++ and GCC): Mention gcj manual.

View File

@ -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),