aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-09-27 18:32:07 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-09-27 18:32:07 -0400
commit560f3f8a1cc71fc771fb9c888761eb1384d239fd (patch)
treed1f9bff776dd54b5149c1491d0e0e37d5a07d57a /gcc
parent627c097fdc146c6d6b468e595b56b2c01bcb1da7 (diff)
downloadgcc-560f3f8a1cc71fc771fb9c888761eb1384d239fd.zip
gcc-560f3f8a1cc71fc771fb9c888761eb1384d239fd.tar.gz
gcc-560f3f8a1cc71fc771fb9c888761eb1384d239fd.tar.bz2
(expand_fix): Call emit_library_call_value.
From-SVN: r8149
Diffstat (limited to 'gcc')
-rw-r--r--gcc/optabs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 6cc8510..5c9c28b 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -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));
}