diff options
author | Maho Nakata <maho@FreeBSD.org> | 2005-08-28 08:01:19 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2005-08-28 08:01:19 +0000 |
commit | dd092402fa6b99f7ea96c082c0dfa9ed52245fa7 (patch) | |
tree | bcb68f1dec35332da1cd46f4f36d296918775cb4 /lang/gcc32 | |
parent | 1c8f8b7c0b84b58f5eb212adbff902829e6b190c (diff) |
Notes
Diffstat (limited to 'lang/gcc32')
-rw-r--r-- | lang/gcc32/files/patch-gcc+config+freebsd-spec.h | 14 | ||||
-rw-r--r-- | lang/gcc32/files/patch-gcc+config+freebsd7.h | 26 | ||||
-rw-r--r-- | lang/gcc32/files/patch-gcc+config.gcc | 10 |
3 files changed, 50 insertions, 0 deletions
diff --git a/lang/gcc32/files/patch-gcc+config+freebsd-spec.h b/lang/gcc32/files/patch-gcc+config+freebsd-spec.h new file mode 100644 index 000000000000..058049c34f2b --- /dev/null +++ b/lang/gcc32/files/patch-gcc+config+freebsd-spec.h @@ -0,0 +1,14 @@ +--- gcc/config/freebsd-spec.h.org Sat Aug 13 10:18:00 2005 ++++ gcc/config/freebsd-spec.h Sat Aug 13 18:40:03 2005 +@@ -48,6 +48,11 @@ + || !strcmp ((STR), "soname") || !strcmp ((STR), "defsym") \ + || !strcmp ((STR), "assert") || !strcmp ((STR), "dynamic-linker")) + ++#if FBSD_MAJOR == 7 ++#define FBSD_CPP_PREDEFINES \ ++ "-D__FreeBSD__=7 -Dunix -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD" ++#endif ++ + #if FBSD_MAJOR == 6 + #define FBSD_CPP_PREDEFINES \ + "-D__FreeBSD__=6 -Dunix -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD" diff --git a/lang/gcc32/files/patch-gcc+config+freebsd7.h b/lang/gcc32/files/patch-gcc+config+freebsd7.h new file mode 100644 index 000000000000..ed912974ba0e --- /dev/null +++ b/lang/gcc32/files/patch-gcc+config+freebsd7.h @@ -0,0 +1,26 @@ +--- /dev/null Sat Aug 13 10:11:00 2005 ++++ gcc/config/freebsd7.h Sat Aug 13 10:11:42 2005 +@@ -0,0 +1,23 @@ ++/* FreeBSD version number setting for FreeBSD 6.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 7 ++ diff --git a/lang/gcc32/files/patch-gcc+config.gcc b/lang/gcc32/files/patch-gcc+config.gcc new file mode 100644 index 000000000000..9b85e5c76f29 --- /dev/null +++ b/lang/gcc32/files/patch-gcc+config.gcc @@ -0,0 +1,10 @@ +--- gcc/config.gcc.org Sat Mar 1 03:38:19 2003 ++++ gcc/config.gcc Sat Aug 13 10:11:06 2005 +@@ -445,6 +445,7 @@ + *-*-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";; + *) echo 'Please update *-*-freebsd* in gcc/config.gcc'; exit 1;; + esac + tmake_file="t-slibgcc-elf-ver t-freebsd" |