From: kaz K. <kk...@rr...> - 2001-06-20 02:51:52
|
Hi, Bryan Rittmeyer <br...@ix...> wrote: > Is anyone successfully using gcc-3.0 with the sh4? I have > tried building several toolchains based on it, and they > all compile the 2.4.5 kernel succesfully (after a minor > xtime patch which I've included below). However, I can't > get gcc-3.0 to produce ANY working user code (not even > hello1-20000824!) I don't try 3.0, but I've put an experimental patch http://dodo.nurs.or.jp/~kkojima/gnu-on-sh/gcc-cvs-010514.diff http://dodo.nurs.or.jp/~kkojima/gnu-on-sh/gcc-cvs-010515-2add.tar.gz for 3.1 branch. It was relatively stable for 20000504 version of 3.1 CVS tree. Unfortunately, now 3.1 can't even bootstrap. You can configure gcc like as /xxx/gcc/configure --host=... --target=sh4-unknown-linux-gnu --enable-languages=c --enable-shared under this patch. The option --enable-shared makes the shared libgcc which is new in 3.x release. It needs some manual operations to make the shared libgcc in the cross environment. The above patch uses the shared libgcc libgcc_s.so as default. If you don't like it, specs file must be modified. kaz |