diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-01-24 19:00:58 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-01-24 19:00:58 +0000 |
commit | 4cfc604201d08c88f367657652cabbcf9203b298 (patch) | |
tree | c322b7c1ce9e8f137d63bb1abc373ec97b124e9e /gcc | |
parent | 597dba19e8aeb720e8ffab09757a0e62115de0ec (diff) | |
download | gcc-4cfc604201d08c88f367657652cabbcf9203b298.zip gcc-4cfc604201d08c88f367657652cabbcf9203b298.tar.gz gcc-4cfc604201d08c88f367657652cabbcf9203b298.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/calls.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60fcec5..e2fad48 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/calls.c b/gcc/calls.c index 95dad19..9c77b87 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), |