From: Bryan R. <br...@ix...> - 2001-02-21 00:36:59
|
Hello, For anybody else as crazy (stupid?) as me that wants to try sh4 GNU CVS gcc, here's a patch to fix some compiler-defined symbols when -m4-nofpu is used. Currently, __sh3__ is defined by -m4-nofpu, but __sh4__ is not, which is causing the kernel compile to fail. Here's my fixup patch for gcc (for -rgcc-3_0-branch): --- gcc/config/sh/sh-old.h Thu Feb 15 09:16:52 2001 +++ gcc/config/sh/sh.h Tue Feb 20 15:55:45 2001 @@ -48,7 +48,7 @@ %{m3e:-D__SH3E__} \ %{m4-single-only:-D__SH4_SINGLE_ONLY__} \ %{m4-single:-D__SH4_SINGLE__} \ -%{m4-nofpu:-D__sh3__ -D__SH4_NOFPU__} \ +%{m4-nofpu:-D__SH4__ -D__SH4_NOFPU__} \ %{m4:-D__SH4__} \ %{!m1:%{!m2:%{!m3:%{!m3e:%{!m4:%{!m4-single:%{!m4-single-only:%{!m4-nofpu:-D__sh1__}}}}}}}} \ %{mnomacsave:-D__NOMACSAVE__} \ @@ -212,7 +212,7 @@ {"4-single", TARGET_NONE, "" }, \ {"4-single", SH4_BIT|SH3E_BIT|SH3_BIT|SH2_BIT|SH1_BIT|HARD_SH4_BIT|FPU_SINGLE_BIT, "" },\ {"4-nofpu", TARGET_NONE, "" }, \ - {"4-nofpu", SH3_BIT|SH2_BIT|SH1_BIT|HARD_SH4_BIT, "" },\ + {"4-nofpu", SH4_BIT|SH3E_BIT|SH3_BIT|SH2_BIT|SH1_BIT|HARD_SH4_BIT, "" },\ {"4", TARGET_NONE, "" }, \ {"4", SH4_BIT|SH3E_BIT|SH3_BIT|SH2_BIT|SH1_BIT|HARD_SH4_BIT, "" }, \ {"b", -LITTLE_ENDIAN_BIT, "" }, \ is anyone else using a cvs version of gcc with good results? Also, is anyone using a new glibc (2.2, 2.2.1, 2.2.2) with the old (LinuxSH CVS) binutils and gcc? I've tried to do so, but get lots of undefined symbols and some conflicts with libgcc when trying to link (staticly or dynamically). but glibc itself builds without any error. Regards, Bryan -- Bryan Rittmeyer mailto:br...@ix... Ixia Communications 26601 W. Agoura Rd. Calabasas, CA 91302 |