summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-24 19:00:58 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-24 19:00:58 +0000
commit211cf3755d75fa5bf0fe70f67b0a68d389061d13 (patch)
treec322b7c1ce9e8f137d63bb1abc373ec97b124e9e
parent511f07caa4f0c212aecd21147019dda522cbd367 (diff)
downloadppe42-gcc-211cf3755d75fa5bf0fe70f67b0a68d389061d13.tar.gz
ppe42-gcc-211cf3755d75fa5bf0fe70f67b0a68d389061d13.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39242 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/calls.c2
2 files changed, 7 insertions, 1 deletions
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 <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 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),
OpenPOWER on IntegriCloud