This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix build on FreeBSD 8 and prepare for FreeBSD 10 and 11
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Loren James Rittle <rittle at labs dot mot dot com>, Hirohisa Yamaguchi <umq at ueo dot co dot jp>
- Date: Thu, 27 Dec 2007 13:53:12 +0100 (CET)
- Subject: Re: Fix build on FreeBSD 8 and prepare for FreeBSD 10 and 11
- References: <Pine.LNX.4.64.0711042110250.26054@acrux.dbai.tuwien.ac.at>
On Sun, 4 Nov 2007, Gerald Pfeifer wrote:
> This also made me notice that we will like run into problems in
> about two years when FreeBSD 10 is expected to branch and older
> versions of GCC will still be in use (and, yes, this is the case
> and I am getting bug reports for GCC 3.4 and even older versions
> still). So, I made the obvious set of changes for that as well.
> [...]
> 2007-11-04 Hirohisa Yamaguchi <umq@ueo.co.jp>
>
> * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Fix
> broken else-if chain.
>
> 2007-11-04 Gerald Pfeifer <gerald@pfeifer.com>
>
> * config.gcc: Proactively add FreeBSD 10 and FreeBSD 11.
> * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
I keep getting reports for older versions of GCC (such as GCC 3.3) not
building on current versions of FreeBSD (such as FreeBSD 8) out of the
box, so I went ahead an applied the subset of this patch that is
applicable to the GCC 4.2 branch as well.
Fortunately, GCC 4.3 and latter do not need any such manual lists any
longer.
Gerald
2007-12-27 Gerald Pfeifer <gerald@pfeifer.com>
* config.gcc: Proactively add FreeBSD 10 and FreeBSD 11.
Index: config.gcc
===================================================================
--- config.gcc (revision 131193)
+++ config.gcc (working copy)
@@ -425,6 +425,10 @@
tm_defines="${tm_defines} FBSD_MAJOR=8" ;;
*-*-freebsd9 | *-*-freebsd[9].*)
tm_defines="${tm_defines} FBSD_MAJOR=9" ;;
+ *-*-freebsd10 | *-*-freebsd10.*)
+ tm_defines="${tm_defines} FBSD_MAJOR=10" ;;
+ *-*-freebsd11 | *-*-freebsd11.*)
+ tm_defines="${tm_defines} FBSD_MAJOR=11" ;;
*)
echo 'Please update *-*-freebsd* in gcc/config.gcc'
exit 1