aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/gccxml/files/patch-GCC::gcc::config.gcc3
-rw-r--r--devel/gccxml/files/patch-GCC::gcc::config::freebsd8.h25
-rw-r--r--lang/llvm-gcc4/files/patch-gcc_config.gcc11
-rw-r--r--lang/llvm-gcc4/files/patch-gcc_config_freebsd-spec.h13
4 files changed, 51 insertions, 1 deletions
diff --git a/devel/gccxml/files/patch-GCC::gcc::config.gcc b/devel/gccxml/files/patch-GCC::gcc::config.gcc
index 2fd0b0bba722..24314b599b77 100644
--- a/devel/gccxml/files/patch-GCC::gcc::config.gcc
+++ b/devel/gccxml/files/patch-GCC::gcc::config.gcc
@@ -1,10 +1,11 @@
--- GCC/gcc/config.gcc.orig Thu Jan 22 23:50:26 2004
+++ GCC/gcc/config.gcc Sat May 13 16:27:18 2006
-@@ -475,6 +475,7 @@
+@@ -475,6 +475,8 @@
*-*-freebsd4 | *-*-freebsd[4].*) fbsd_tm_file="freebsd4.h";;
*-*-freebsd5 | *-*-freebsd[5].*) fbsd_tm_file="freebsd5.h";;
*-*-freebsd6 | *-*-freebsd[6].*) fbsd_tm_file="freebsd6.h";;
+ *-*-freebsd7 | *-*-freebsd[7].*) fbsd_tm_file="freebsd7.h";;
++ *-*-freebsd8 | *-*-freebsd[8].*) fbsd_tm_file="freebsd8.h";;
*) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;;
esac
tmake_file="t-slibgcc-elf-ver t-freebsd"
diff --git a/devel/gccxml/files/patch-GCC::gcc::config::freebsd8.h b/devel/gccxml/files/patch-GCC::gcc::config::freebsd8.h
new file mode 100644
index 000000000000..8b421130568d
--- /dev/null
+++ b/devel/gccxml/files/patch-GCC::gcc::config::freebsd8.h
@@ -0,0 +1,25 @@
+--- /dev/null Sat May 13 16:25:00 2006
++++ GCC/gcc/config/freebsd8.h Sat May 13 16:28:29 2006
+@@ -0,0 +1,22 @@
++/* FreeBSD version number setting for FreeBSD 8.x systems.
++ Copyright (C) 2001 Free Software Foundation, Inc.
++ Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
++
++This file is part of GNU CC.
++
++GNU CC is free software; you can redistribute it and/or modify
++it under the terms of the GNU General Public License as published by
++the Free Software Foundation; either version 2, or (at your option)
++any later version.
++
++GNU CC is distributed in the hope that it will be useful,
++but WITHOUT ANY WARRANTY; without even the implied warranty of
++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++GNU General Public License for more details.
++
++You should have received a copy of the GNU General Public License
++along with GNU CC; see the file COPYING. If not, write to
++the Free Software Foundation, 59 Temple Place - Suite 330,
++Boston, MA 02111-1307, USA. */
++
++#define FBSD_MAJOR 8
diff --git a/lang/llvm-gcc4/files/patch-gcc_config.gcc b/lang/llvm-gcc4/files/patch-gcc_config.gcc
new file mode 100644
index 000000000000..acdd3593365b
--- /dev/null
+++ b/lang/llvm-gcc4/files/patch-gcc_config.gcc
@@ -0,0 +1,11 @@
+--- ../gcc/config.gcc.orig 2007-12-20 19:57:41.000000000 -0500
++++ ../gcc/config.gcc 2007-12-20 19:58:08.000000000 -0500
+@@ -431,6 +431,8 @@
+ *-*-freebsd7 | *-*-freebsd[7].*)
+ tm_defines="${tm_defines} FBSD_MAJOR=7" ;;
+ # APPLE LOCAL end LLVM
++ *-*-freebsd8 | *-*-freebsd[8].*)
++ tm_defines="${tm_defines} FBSD_MAJOR=8" ;;
+ *)
+ echo 'Please update *-*-freebsd* in gcc/config.gcc'
+ exit 1
diff --git a/lang/llvm-gcc4/files/patch-gcc_config_freebsd-spec.h b/lang/llvm-gcc4/files/patch-gcc_config_freebsd-spec.h
new file mode 100644
index 000000000000..5ce9d438d0ab
--- /dev/null
+++ b/lang/llvm-gcc4/files/patch-gcc_config_freebsd-spec.h
@@ -0,0 +1,13 @@
+--- ../gcc/config/freebsd-spec.h.orig 2007-12-21 20:20:55.000000000 -0500
++++ ../gcc/config/freebsd-spec.h 2007-12-21 20:21:32.000000000 -0500
+@@ -75,7 +75,9 @@
+ #define FBSD_TARGET_OS_CPP_BUILTINS() \
+ do \
+ { \
+- if (FBSD_MAJOR == 7) \
++ if (FBSD_MAJOR == 8) \
++ builtin_define ("__FreeBSD__=8"); \
++ else if (FBSD_MAJOR == 7) \
+ builtin_define ("__FreeBSD__=7"); \
+ else if (FBSD_MAJOR == 6) \
+ builtin_define ("__FreeBSD__=6"); \