calls.c (emit_library_call_value_1): Memory slot for pass-by-reference argument shoul...
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 24 Jan 2001 19:00:58 +0000 (19:00 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 24 Jan 2001 19:00:58 +0000 (19:00 +0000)
* 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
gcc/calls.c

index 60fcec52e0fefb62dbd59ddd6104500b42a72e64..e2fad4851baed4ace1382a1cb19bbd53a58c9cae 100644 (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.
index 95dad19f6c1a9ec27d7f2aac804063b24f5ab35d..9c77b8797013be27eedae31c740205bf6c0384f9 100644 (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),