2002-02-03 08:15:30 +01:00
|
|
|
--- 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 @@
|
2000-02-14 12:39:38 +01:00
|
|
|
|
|
|
|
#undef WCHAR_TYPE_SIZE
|
1999-03-22 02:35:36 +01:00
|
|
|
#define WCHAR_TYPE_SIZE BITS_PER_WORD
|
2002-02-03 08:15:30 +01:00
|
|
|
+
|
2000-11-28 19:55:06 +01:00
|
|
|
+#undef CC1_SPEC
|
1999-06-15 09:31:21 +02:00
|
|
|
+#define CC1_SPEC "\
|
|
|
|
+ %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
|
|
|
|
+ %{maout: %{!mno-underscores: %{!munderscores: -munderscores }}}"
|
2000-01-17 13:27:59 +01:00
|
|
|
+
|
1999-07-25 05:34:39 +02:00
|
|
|
+#undef ASM_SPEC
|
|
|
|
+#define ASM_SPEC "%{v*: -v} %{maout: %{fpic:-k} %{fPIC:-k}}"
|
2002-02-03 08:15:30 +01:00
|
|
|
|
1999-07-04 22:57:15 +02:00
|
|
|
/* Provide a STARTFILE_SPEC appropriate for FreeBSD. Here we add
|
|
|
|
the magical crtbegin.o file (see crtstuff.c) which provides part
|
2002-02-03 08:15:30 +01:00
|
|
|
@@ -84,11 +92,18 @@
|
1999-06-21 20:17:56 +02:00
|
|
|
|
|
|
|
#undef STARTFILE_SPEC
|
|
|
|
#define STARTFILE_SPEC \
|
1998-10-08 23:33:02 +02:00
|
|
|
- "%{!shared: \
|
1999-06-21 20:17:56 +02:00
|
|
|
- %{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}"
|
|
|
|
+ "%{maout: %{shared:c++rt0.o%s} \
|
1999-04-21 09:48:59 +02:00
|
|
|
+ %{!shared:%{pg:gcrt0.o%s}%{!pg:%{static:scrt0.o%s}%{!static:crt0.o%s}}}} \
|
2002-02-03 08:15:30 +01:00
|
|
|
+ %{!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} \
|
|
|
|
+ }"
|
1999-06-21 20:17:56 +02:00
|
|
|
|
|
|
|
/* Provide a ENDFILE_SPEC appropriate for FreeBSD. Here we tack on
|
|
|
|
the magical crtend.o file (see crtstuff.c) which provides part of
|
2002-02-03 08:15:30 +01:00
|
|
|
@@ -98,7 +113,7 @@
|
1999-06-21 20:17:56 +02:00
|
|
|
|
|
|
|
#undef ENDFILE_SPEC
|
|
|
|
#define ENDFILE_SPEC \
|
|
|
|
- "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
1999-04-21 09:48:59 +02:00
|
|
|
+ "%{!maout: %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s}"
|
1999-06-21 20:17:56 +02:00
|
|
|
|
2000-01-17 13:27:59 +01:00
|
|
|
/* Provide a LINK_SPEC appropriate for FreeBSD. Here we provide support
|
|
|
|
for the special GCC options -static and -shared, which allow us to
|