RFC: feature tests instead of compiler tests

Alexander Leidinger Alexander at Leidinger.net
Thu Jul 1 02:02:57 PDT 2004


Hi,

the 106k large patch at
http://www.leidinger.net/FreeBSD/current-patches/compiler_independence.diff
introduces feature tests instead of checks for a particular compiler in
the kernel source. The only checks for a particular compiler are in
cdefs.h now.

As per suggestion from bde I also removed parts of the backward
compatibility to old gcc versions because the rest of the kernel can't
be compiled anymore with those old versions.

Interested parties may look at the cdefs.h part first and suggest some
fixes (e.g. better names for the feature defines).

The patch survives a run through the universe. Various revisions of this
patch run fine on my desktop system since some months.

Bye,
Alexander.

-- 
           I'm available to get hired (preferred in .lu).

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7


More information about the freebsd-arch mailing list