2000-02-14 06:39:38 -05:00
|
|
|
--- gcc/config/i386/freebsd.h.orig Sun Jan 30 23:28:05 2000
|
|
|
|
+++ gcc/config/i386/freebsd.h Fri Feb 4 05:22:36 2000
|
|
|
|
@@ -52,6 +52,10 @@
|
|
|
|
#undef DBX_REGISTER_NUMBER
|
|
|
|
#define DBX_REGISTER_NUMBER(n) svr4_dbx_register_map[n]
|
1998-10-08 17:33:02 -04:00
|
|
|
|
1999-07-04 16:57:15 -04:00
|
|
|
+/* Don't use EGCS's normal profiling code -- we have our own fine-grained
|
|
|
|
+ basic block profiling. */
|
2000-09-05 12:59:15 -04:00
|
|
|
+#define NO_PROFILE_COUNTERS
|
1999-06-24 15:11:57 -04:00
|
|
|
+
|
1999-07-04 16:57:15 -04:00
|
|
|
/* Tell final.c that we don't need a label passed to mcount. */
|
|
|
|
|
1998-10-08 17:33:02 -04:00
|
|
|
#undef FUNCTION_PROFILER
|
2000-02-14 06:39:38 -05:00
|
|
|
@@ -73,11 +77,15 @@
|
|
|
|
|
|
|
|
#undef WCHAR_TYPE_SIZE
|
1999-03-21 20:35:36 -05:00
|
|
|
#define WCHAR_TYPE_SIZE BITS_PER_WORD
|
2000-02-14 06:39:38 -05:00
|
|
|
-
|
|
|
|
-#undef CPP_PREDEFINES
|
|
|
|
-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__\
|
|
|
|
- -Asystem(unix) -Asystem(bsd) -Asystem(FreeBSD)"
|
|
|
|
|
1999-06-15 03:31:21 -04:00
|
|
|
+#undef CC1_SPEC
|
|
|
|
+#define CC1_SPEC "\
|
|
|
|
+ %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
|
|
|
|
+ %{maout: %{!mno-underscores: %{!munderscores: -munderscores }}}"
|
2000-01-17 07:27:59 -05:00
|
|
|
+
|
1999-07-24 23:34:39 -04:00
|
|
|
+#undef ASM_SPEC
|
|
|
|
+#define ASM_SPEC "%{v*: -v} %{maout: %{fpic:-k} %{fPIC:-k}}"
|
2000-02-14 06:39:38 -05:00
|
|
|
+
|
1999-07-04 16:57:15 -04:00
|
|
|
/* Provide a STARTFILE_SPEC appropriate for FreeBSD. Here we add
|
|
|
|
the magical crtbegin.o file (see crtstuff.c) which provides part
|
2000-02-14 06:39:38 -05:00
|
|
|
of the support for getting C++ file-scope static object constructed
|
|
|
|
@@ -85,11 +93,11 @@
|
1999-06-21 14:17:56 -04:00
|
|
|
|
|
|
|
#undef STARTFILE_SPEC
|
|
|
|
#define STARTFILE_SPEC \
|
1998-10-08 17:33:02 -04:00
|
|
|
- "%{!shared: \
|
1999-06-21 14:17:56 -04: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 03:48:59 -04:00
|
|
|
+ %{!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}}"
|
1999-06-21 14:17:56 -04:00
|
|
|
|
|
|
|
/* Provide a ENDFILE_SPEC appropriate for FreeBSD. Here we tack on
|
|
|
|
the magical crtend.o file (see crtstuff.c) which provides part of
|
2000-02-14 06:39:38 -05:00
|
|
|
@@ -99,7 +107,7 @@
|
1999-06-21 14:17:56 -04:00
|
|
|
|
|
|
|
#undef ENDFILE_SPEC
|
|
|
|
#define ENDFILE_SPEC \
|
|
|
|
- "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
1999-04-21 03:48:59 -04:00
|
|
|
+ "%{!maout: %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s}"
|
1999-06-21 14:17:56 -04:00
|
|
|
|
2000-01-17 07:27:59 -05:00
|
|
|
/* Provide a LINK_SPEC appropriate for FreeBSD. Here we provide support
|
|
|
|
for the special GCC options -static and -shared, which allow us to
|