(expand_fix): Call emit_library_call_value.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 27 Sep 1994 22:32:07 +0000 (18:32 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 27 Sep 1994 22:32:07 +0000 (18:32 -0400)
From-SVN: r8149

gcc/optabs.c

index 6cc8510831cef149826395204999d0dd29effc96..5c9c28b27a18bcf2333099745716b421f9c1efea 100644 (file)
@@ -3280,7 +3280,7 @@ expand_float (to, from, unsignedp)
     }
 #endif
 
-  /* No hardware instruction available; call a library rotine to convert from
+  /* No hardware instruction available; call a library routine to convert from
      SImode, DImode, or TImode into SFmode, DFmode, XFmode, or TFmode.  */
     {
       rtx libfcn;
@@ -3564,6 +3564,7 @@ expand_fix (to, from, unsignedp)
   if (libfcn)
     {
       rtx insns;
+      rtx value;
 
       to = protect_from_queue (to, 1);
       from = protect_from_queue (from, 0);
@@ -3573,11 +3574,13 @@ expand_fix (to, from, unsignedp)
 
       start_sequence ();
 
-      emit_library_call (libfcn, 1, GET_MODE (to), 1, from, GET_MODE (from));
+      value = emit_library_call_value (libfcn, NULL_RTX, 1, GET_MODE (to),
+
+                                      1, from, GET_MODE (from));
       insns = get_insns ();
       end_sequence ();
 
-      emit_libcall_block (insns, target, hard_libcall_value (GET_MODE (to)),
+      emit_libcall_block (insns, target, value,
                          gen_rtx (unsignedp ? FIX : UNSIGNED_FIX,
                                   GET_MODE (to), from));
     }