From: Bryan R. <br...@ix...> - 2001-02-21 05:30:38
|
Hi, I've found this additional patch is necessary for proper cpp behavior: --- gcc/config/sh/linux-old.h Tue Feb 20 21:26:51 2001 +++ gcc/config/sh/linux.h Tue Feb 20 21:24:40 2001 @@ -43,9 +43,9 @@ #define CPP_SPEC \ "%{mb:-D__BIG_ENDIAN__} \ %{!mb:-D__LITTLE_ENDIAN__} \ - %{m3e:-D__SH3E__} \ %{m4:-D__SH4__} \ - %{!m3e:%{!m4:-D__SH3__ -D__sh3__}} \ + %{!m4:%{m4-nofpu:-D__SH4__ -D__SH4_NOFPU__}} \ + %{!m4:%{!m4-nofpu:-D__SH3__ -D__sh3__}} \ %{fPIC:-D__PIC__ -D__pic__} \ %{fpic:-D__PIC__ -D__pic__} \ %{posix:-D_POSIX_SOURCE} \ @@ -59,11 +59,12 @@ #undef CC1_SPEC #define CC1_SPEC \ - "-musermode %{!mb:-ml} %{!m3e:%{!m4:-m3}}" + "-musermode %{!mb:-ml} %{!m4:%{!m4-nofpu:-m3}}" #undef CC1PLUS_SPEC #define CC1PLUS_SPEC \ - "-musermode %{!mb:-ml} %{!m3e:%{!m4:-m3}}" + "-musermode %{!mb:-ml} %{!m4:%{!m4-nofpu:-m3}}" + #undef LINK_SPEC #define LINK_SPEC \ @@ -71,7 +72,7 @@ %{shared:-shared} \ %{!static: \ %{rdynamic:-export-dynamic} \ - %{!dynamic-linker:-dynamic-linker /lib/ld.so.1} \ + %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} %{!rpath:-rpath /lib}} \ %{static:-static}" if anyone else is interested, I am configuring GNU CVS gcc with: ../gcc/configure --target=sh-linux-gnu --prefix=/usr/local/sh --enable-languages=c,c++ --disable-multilib which seems to at least build correctly as of today. Regards, Bryan -- Bryan Rittmeyer mailto:br...@ix... Ixia Communications 26601 W. Agoura Rd. Calabasas, CA 91302 |