aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc30/files
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-08-30 19:06:54 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-08-30 19:06:54 +0000
commit3f4fe1d4a0a7f4117916b7d894c5877b0374fbf0 (patch)
tree0a6b289f24e10cf8d0f60dee4222cf9a3652c046 /lang/gcc30/files
parent23a999b22b5593c138d3d687d091c560499d968f (diff)
Notes
Diffstat (limited to 'lang/gcc30/files')
-rw-r--r--lang/gcc30/files/patch-aa4
-rw-r--r--lang/gcc30/files/patch-ac4
-rw-r--r--lang/gcc30/files/patch-af32
-rw-r--r--lang/gcc30/files/patch-ar46
-rw-r--r--lang/gcc30/files/patch-fc6
5 files changed, 61 insertions, 31 deletions
diff --git a/lang/gcc30/files/patch-aa b/lang/gcc30/files/patch-aa
index 9dc2e19279bb..db932fa5c7e1 100644
--- a/lang/gcc30/files/patch-aa
+++ b/lang/gcc30/files/patch-aa
@@ -1,5 +1,5 @@
---- gcc/cpp.texi.orig Mon Aug 11 08:57:05 1997
-+++ gcc/cpp.texi Sat Jan 10 11:59:15 1998
+--- gcc/doc/cpp.texi.orig Mon Aug 11 08:57:05 1997
++++ gcc/doc/cpp.texi Sat Jan 10 11:59:15 1998
@@ -1,5 +1,9 @@
\input texinfo
@setfilename cpp.info
diff --git a/lang/gcc30/files/patch-ac b/lang/gcc30/files/patch-ac
index 961874c5c315..7f9a3640ccfe 100644
--- a/lang/gcc30/files/patch-ac
+++ b/lang/gcc30/files/patch-ac
@@ -1,5 +1,5 @@
---- gcc/gcc.texi.orig Fri Jan 2 15:38:11 1998
-+++ gcc/gcc.texi Sat Jan 10 11:56:49 1998
+--- gcc/doc/gcc.texi.orig Fri Jan 2 15:38:11 1998
++++ gcc/doc/gcc.texi Sat Jan 10 11:56:49 1998
@@ -1,6 +1,10 @@
>\input texinfo @c -*-texinfo-*-
@c %**start of header
diff --git a/lang/gcc30/files/patch-af b/lang/gcc30/files/patch-af
index 3941ebdce314..9da4d3279d7c 100644
--- a/lang/gcc30/files/patch-af
+++ b/lang/gcc30/files/patch-af
@@ -1,14 +1,10 @@
---- gcc/config/i386/freebsd.h.orig Thu Nov 2 15:29:09 2000
-+++ gcc/config/i386/freebsd.h Mon Nov 27 01:52:39 2000
-@@ -76,11 +76,15 @@
+--- gcc/config/i386/freebsd.h.orig Wed May 30 16:05:31 2001
++++ gcc/config/i386/freebsd.h Mon Jun 18 17:47:30 2001
+@@ -76,6 +76,14 @@
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE BITS_PER_WORD
--
--#undef CPP_PREDEFINES
--#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__\
-- -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
-
++
+#undef CC1_SPEC
+#define CC1_SPEC "\
+ %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
@@ -16,11 +12,10 @@
+
+#undef ASM_SPEC
+#define ASM_SPEC "%{v*: -v} %{maout: %{fpic:-k} %{fPIC:-k}}"
-+
+
/* Provide a STARTFILE_SPEC appropriate for FreeBSD. Here we add
the magical crtbegin.o file (see crtstuff.c) which provides part
- of the support for getting C++ file-scope static object constructed
-@@ -88,11 +92,11 @@
+@@ -84,11 +92,18 @@
#undef STARTFILE_SPEC
#define STARTFILE_SPEC \
@@ -31,13 +26,20 @@
- crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
+ "%{maout: %{shared:c++rt0.o%s} \
+ %{!shared:%{pg:gcrt0.o%s}%{!pg:%{static:scrt0.o%s}%{!static:crt0.o%s}}}} \
-+ %{!maout: %{!shared: \
-+ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
-+ crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
++ %{!maout: \
++ %{!shared: \
++ %{pg:gcrt1.o%s} \
++ %{!pg:%{p:gcrt1.o%s} \
++ %{!p:%{profile:gcrt1.o%s} \
++ %{!profile:crt1.o%s}}}} \
++ crti.o%s \
++ %{!shared:crtbegin.o%s} \
++ %{shared:crtbeginS.o%s} \
++ }"
/* Provide a ENDFILE_SPEC appropriate for FreeBSD. Here we tack on
the magical crtend.o file (see crtstuff.c) which provides part of
-@@ -102,7 +106,7 @@
+@@ -98,7 +113,7 @@
#undef ENDFILE_SPEC
#define ENDFILE_SPEC \
diff --git a/lang/gcc30/files/patch-ar b/lang/gcc30/files/patch-ar
index e6a4c8ad30b0..955024de7baf 100644
--- a/lang/gcc30/files/patch-ar
+++ b/lang/gcc30/files/patch-ar
@@ -1,16 +1,44 @@
---- gcc/config/freebsd.h.orig Mon Nov 22 22:17:32 1999
-+++ gcc/config/freebsd.h Fri Feb 4 05:29:31 2000
-@@ -48,13 +48,26 @@
+--- gcc/config/freebsd.h.orig Wed May 30 16:05:30 2001
++++ gcc/config/freebsd.h Mon Jun 18 18:46:50 2001
+@@ -50,29 +50,32 @@
#undef WORD_SWITCH_TAKES_ARG
#define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
+/* Place spaces around this string. We depend on string splicing to produce
+ the final CPP_PREDEFINES value. */
-+#define FBSD_CPP_PREDEFINES " -Dunix -D__FreeBSD__ -Asystem(unix) -Asystem(bsd) -Asystem(FreeBSD) "
-+
-+#undef CPP_PREDEFINES
-+#define CPP_PREDEFINES FBSD_CPP_PREDEFINES
+
+ #if FBSD_MAJOR == 6
+ #define FBSD_CPP_PREDEFINES \
+- "-D__FreeBSD__=6 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
++ " -D__FreeBSD__=6 -Dunix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD "
+ #endif
+
+ #if FBSD_MAJOR == 5
+ #define FBSD_CPP_PREDEFINES \
+- "-D__FreeBSD__=5 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
++ " -D__FreeBSD__=5 -Dunix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD "
+ #endif
+
+ #if FBSD_MAJOR == 4
+ #define FBSD_CPP_PREDEFINES \
+- "-D__FreeBSD__=4 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
++ " -D__FreeBSD__=4 -Dunix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD "
+ #endif
+
+ #if FBSD_MAJOR == 3
+ #define FBSD_CPP_PREDEFINES \
+- "-D__FreeBSD__=3 -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
++ " -D__FreeBSD__=3 -Dunix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD "
+ #endif
+
+ #ifndef FBSD_CPP_PREDEFINES
+ #define FBSD_CPP_PREDEFINES \
+- "-D__FreeBSD__ -Dunix -D__ELF__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
++ " -D__FreeBSD__ -Dunix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD "
+ #endif
+
+ #undef CPP_PREDEFINES
+@@ -81,10 +84,16 @@
/* Provide a CPP_SPEC appropriate for FreeBSD. We just deal with the GCC
option `-posix', and PIC issues. */
@@ -28,5 +56,5 @@
+#undef CPP_SPEC
+#define CPP_SPEC FBSD_CPP_SPEC
- /* Provide a LIB_SPEC appropriate for FreeBSD. Just select the appropriate
- libc, depending on whether we're doing profiling or need threads support.
+ /* Provide a LIB_SPEC appropriate for FreeBSD as configured and as
+ required by the user-land thread model. Before __FreeBSD_version
diff --git a/lang/gcc30/files/patch-fc b/lang/gcc30/files/patch-fc
index f783e5cae528..d03aaf307875 100644
--- a/lang/gcc30/files/patch-fc
+++ b/lang/gcc30/files/patch-fc
@@ -13,11 +13,11 @@
@@ -1064,6 +1067,8 @@
"Do the full regmove optimization pass"},
{"pack-struct", &flag_pack_struct, 1,
- "Pack structure members together without holes" },
+ N_("Pack structure members together without holes") },
+ {"format-extensions", &flag_format_extensions, 1,
-+ "-Wformat accepts certain FreeBSD system-dependent formats" },
++ N_("-Wformat accepts certain FreeBSD system-dependent formats") },
{"stack-check", &flag_stack_check, 1,
- "Insert stack checking code into the program" },
+ N_("Insert stack checking code into the program") },
{"argument-alias", &flag_argument_noalias, 0,
@@ -4484,6 +4489,19 @@
if (optimize_val != -1)