This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix build on FreeBSD 8 and prepare for FreeBSD 10 and 11


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]