[PATCH] Basic support for MIPS r5900

"Jürgen Urban" JuergenUrban@gmx.de
Sun Jun 23 19:34:00 GMT 2013


Hello Richard,

> >> Does it still work with those changes, as below?  If so, I'll check it in.
> >
> > I tested it. It is still working. So the patch is OK, please check it in.
>
> OK, I've applied this and the config.gcc patch.

Thanks.

In the native PS2SDK (i.e. no Linux) I detected that there are undefined references to `__fixtfsi', `__floatsitf', `__subtf3', `__multf3', `__extenddftf2', `__lttf2' and `__gttf2'. These are the functions for handling "long double".
There is a fix needed for this in libgcc. I attached 2 patches to this e-mail. There should be only one of the patches used to fix this.
The first one fixes the problem for all mips systems. The second one fixes this only for r5900. I think it is a general problem. I assume the undefined references could appear on all mips64 systems which are not Linux. So the first patch should be applied.
Checking for "ac_cv_sizeof_long_double" should work on all mips systems, but I don't know why the check was only in the mips*-linux part of the file libgcc/config.host.

Best regards
Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-svn-20130617-mips-ps2.patch
Type: text/x-patch
Size: 634 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130623/7e8220d2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-svn-20130617-mips-ps2-r5900.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130623/7e8220d2/attachment-0001.bin>


More information about the Gcc-patches mailing list