Re: Tool chain configuration: GNU/* sharing stuff with GNU/Linux
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