Cross gcc Mailing List Archive

[Prev][Next][Index][Thread]

i960 support for soft-float mildly broken



I sent off this bug report to the gcc-bugs list, bug I figure it would
be of interest to others out there as well. So, here you go.

----
GCC 2.7.2 as a cross compiler for i960 targets works perfectly well,
even when the target, such as the i960Jx, does not have any floating
point hardware.

However, the libgcc.a used, even when -msoft-float is passed to gcc,
has been compiled with numeric support included. This comes from the
fact that the default CPU type is the kb, which does have floating
point registers and instructions. GCC without explicit instructions
otherwise, will therefore generate floating point instructions.

The workaround for getting gcc to work with the i960Jx is to recompile
libgcc.a with the -msoft-float flag as follows:

	 % rm libgcc*.a
	 % make libgcc.a CFLAGS=-msoft-float

then install the recompiled libgcc.a in the correct place. The
multilib libgcc.a libraries are probably fine, although I do not have
any i960 targets to test them on.
----


Home | Subject Index | Thread Index