there are no exported functions.
+Tue Nov 28 17:23:44 1995 Doug Evans <dje@canuck.cygnus.com>
+
+ * dlltool.c (fill_ordinals): Don't reference d_export_vec if
+ there are no exported functions.
+
Mon Nov 27 13:05:59 1995 Ian Lance Taylor <ian@cygnus.com>
* configure: Regenerate with autoconf 2.7.
qsort (d_export_vec, d_nfuncs, sizeof (export_type *), pfunc);
-
- /* Work out the lowest ordinal number */
- if (d_export_vec[0])
- d_low_ord = d_export_vec[0]->ordinal;
+ /* Work out the lowest and highest ordinal numbers. */
if (d_nfuncs)
{
+ if (d_export_vec[0])
+ d_low_ord = d_export_vec[0]->ordinal;
if (d_export_vec[d_nfuncs-1])
d_high_ord = d_export_vec[d_nfuncs-1]->ordinal;
}