Tuesday, November 11, 2008

A problem in Loongson 2F specific integer operation instruction patch

I have reported on gcc mailing list.
http://gcc.gnu.org/ml/gcc/2008-11/msg00076.html

Also I found the solution:
http://gcc.gnu.org/ml/gcc/2008-11/msg00087.html

Now I have built gcc-4.4 with my modified patch with "-march=mips3", and am building itself again using "-march=loongson2f".

Note that enabling -O2 in later stages is not working yet. Please check this bug report for more information if you are interested:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38052

EDIT:
just heard from Kumba, this flag used together with -O1 will trigger this bug:
-foptimize-sibling-calls
Optimize sibling and tail recursive calls.

Enabled at levels -O2, -O3, -Os.

The modified gcc 4.4 ebuild is here and some relevant libraries here.

Labels: , ,

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home