patches/gcc/2.95.3/backport-config.gcc-1.4.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/2.95.3/backport-config.gcc-1.4.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,35 @@
     1.4 +# Taken from http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.gcc.diff?r1=1.3&r2=1.4
     1.5 +# Should fix error
     1.6 +#   Configuration powerpc-host_apple-darwin7.3.0 not supported
     1.7 +# when configuring gcc-2.95 on Mac OS X for i686 target
     1.8 +# Also create xm-darwin.h, seems to be required, else we get the error
     1.9 +#   In file included from .../gcc-2.95.3/gcc/gencheck.c:21:
    1.10 +#   hconfig.h:11:30: rs6000/xm-darwin.h: No such file or directory
    1.11 +#   make[1]: *** [gencheck.o] Error 1
    1.12 +
    1.13 +
    1.14 +--- gcc-2.95.3/gcc/configure.old	2004-03-24 12:17:44.000000000 -0800
    1.15 ++++ gcc-2.95.3/gcc/configure	2004-03-24 17:14:38.000000000 -0800
    1.16 +@@ -5079,6 +5079,10 @@
    1.17 + 		tmake_file=rs6000/t-beos
    1.18 + 		xmake_file=rs6000/x-beos
    1.19 + 		;;
    1.20 ++	powerpc-*-darwin*)
    1.21 ++		xm_file="rs6000/xm-rs6000.h rs6000/xm-darwin.h"
    1.22 ++		xmake_file=rs6000/x-darwin
    1.23 ++		;;
    1.24 + 	powerpc-*-sysv* | powerpc-*-elf*)
    1.25 + 		tm_file=rs6000/sysv4.h
    1.26 + 		xm_file="xm-siglist.h rs6000/xm-sysv4.h"
    1.27 +--- /dev/null	2003-01-30 02:24:37.000000000 -0800
    1.28 ++++ gcc-3.0.4/gcc/config/rs6000/xm-darwin.h	2000-11-20 19:02:09.000000000 -0800
    1.29 +@@ -0,0 +1,9 @@
    1.30 ++/* Undo the USG definition in xm-rs6000.h, Darwin is a BSD flavor.  */
    1.31 ++
    1.32 ++#undef USG
    1.33 ++
    1.34 ++/* Override the usual setting, since Apple's GCC has lame bugs and
    1.35 ++   can't handle the initializers.  Someday the bugs will be fixed and
    1.36 ++   we can get rid of this silliness.  */
    1.37 ++
    1.38 ++#define HAVE_DESIGNATED_INITIALIZERS 0