summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index ff96b4c9a22..26e447c4dc4 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -2628,7 +2628,7 @@ emit_float_lib_cmp (x, y, comparison)
enum rtx_code comparison;
{
enum machine_mode mode = GET_MODE (x);
- rtx libfunc;
+ rtx libfunc = 0;
if (mode == SFmode)
switch (comparison)
@@ -2760,6 +2760,9 @@ emit_float_lib_cmp (x, y, comparison)
abort ();
}
+ if (libfunc == 0)
+ abort ();
+
emit_library_call (libfunc, 1,
word_mode, 2, x, mode, y, mode);