fix for darwin build problem

Geoffrey Keating geoffk@romulus.sfbay.redhat.com
Tue Jun 4 15:18:00 GMT 2002


This should fix the reported problem building Darwin:

/Volumes/xufs/gccsrc/gcc/gcc/config/darwin.c:1291: gt-darwin.h: No
such file or directory

Tested on powerpc-eabisim, and I also checked that when building a
cross-compiler to Darwin, cc1 builds successfully.

-- 
Geoff Keating <geoffk@redhat.com>

===File ~/patches/pch-darwinbug.patch=======================
2002-06-04  Geoffrey Keating  <geoffk@redhat.com>

	* config.gcc (powerpc-*-darwin*): Set config_gtfiles.
	* configure.in (config_gtfiles): New variable.
	(all_gtfiles): Initialise from config_gtfiles.
	* configure: Regenerate.

Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.203
diff -p -u -p -r1.203 config.gcc
--- config.gcc	4 Jun 2002 05:02:43 -0000	1.203
+++ config.gcc	4 Jun 2002 22:16:09 -0000
@@ -1978,6 +1978,7 @@ powerpc-*-darwin*)
 	tm_p_file="${tm_p_file} darwin-protos.h"
 	tmake_file=rs6000/t-darwin
 	extra_objs="darwin.o"
+	config_gtfiles="${config_gtfiles} \$(srcdir)/config/darwin.c"
 	c_target_objs="darwin-c.o"
 	cxx_target_objs="darwin-c.o"
 	# Darwin linker does collect2 functionality
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.598
diff -p -u -p -r1.598 configure.in
--- configure.in	4 Jun 2002 07:07:20 -0000	1.598
+++ configure.in	4 Jun 2002 22:16:10 -0000
@@ -719,6 +719,7 @@ objext='.o'
 AC_SUBST(manext)
 AC_SUBST(objext)
 
+config_gtfiles=
 build_xm_file=
 build_xm_defines=
 build_install_headers_dir=install-headers-tar
@@ -2331,7 +2332,7 @@ all_outputs='Makefile intl/Makefile fixi
 # List of language makefile fragments.
 all_lang_makefiles=
 # Files for gengtype
-all_gtfiles=
+all_gtfiles="$config_gtfiles"
 
 # Add the language fragments.
 # Languages are added via two mechanisms.  Some information must be
============================================================



More information about the Gcc-patches mailing list