[cfe-dev] [PATCH]: add support for FreeBSD

Peter O'Gorman peter at pogma.com
Sat Oct 11 14:40:12 PDT 2008


Daniel Dunbar wrote:

> changes into FreeBSD (I'm still confused as to where gcc is getting the
> number from).

To answer where it gets the number from:

http://www.freebsd.org/cgi/cvsweb.cgi/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h?rev=1.29;content-type=text%2Fplain
http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/gcc/config/freebsd-spec.h?rev=1.25;content-type=text%2Fplain

I don't believe __FreeBSD_cc_version gets defined by any of the
compilers in the ports collection, only by /usr/bin/gcc. It looks like a
vendor local patch to me. The __FreeBSD__ number can be gotten from uname().

Peter



More information about the cfe-dev mailing list