This is the mail archive of the
mailing list for the GCC project.
Re: Tool chain configuration: GNU/* sharing stuff with GNU/Linux
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Thomas Schwinge <tschwinge at gnu dot org>
- Cc: gcc at gcc dot gnu dot org, bug-hurd at gnu dot org, debian-bsd at lists dot debian dot org
- Date: Sun, 11 Nov 2007 19:12:59 +0000 (UTC)
- Subject: Re: Tool chain configuration: GNU/* sharing stuff with GNU/Linux
- References: <20071111145808.GY29291@fencepost.gnu.org>
On Sun, 11 Nov 2007, Thomas Schwinge wrote:
> To give an example: all the GNU/* configurations use the `config/linux.h'
> file, even though only one of the possible GNU/* configurations is
GNU/Linux for Alpha, Power and SPARC don't use the shared file, so in
those cases config/$cpu/linux.h has to duplicate a lot from it.
Also, some uClinux targets use this header, and some don't.
> To state this intended similarity clearly, one could rename, e.g.,
> `config/linux.h' to `config/gnu-shared.h' and then have a new (nearly
> empty) file `config/linux.h' additionally to the existing `config/gnu.h',
> `config/kfreebsd-gnu.h', etc. to do the remaining few customizations.
Perhaps it would make sense in the first instance to move just the subset
that can be shared by *all* GNU/Linux targets (and is identical in
config/alpha/linux.h, config/rs6000/linux.h, config/sparc/linux.h as well
as in config/linux.h) into the new header - which *all* GNU/Linux targets
would use - and then work out how to share the rest?
Joseph S. Myers