1998-03-11 11:49:14 +00:00
|
|
|
--- config/i386/freebsd.h.orig Sun Oct 19 09:31:05 1997
|
1998-07-22 02:53:14 +00:00
|
|
|
+++ config/i386/freebsd.h Sun Jul 19 14:31:18 1998
|
|
|
|
@@ -35,10 +35,15 @@
|
1998-04-12 13:29:02 +00:00
|
|
|
#include "i386/perform.h"
|
1998-03-11 11:49:14 +00:00
|
|
|
|
1998-04-12 13:29:02 +00:00
|
|
|
#undef CPP_PREDEFINES
|
|
|
|
-#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
|
1998-05-22 00:26:29 +00:00
|
|
|
+#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=2 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
|
1998-04-12 13:29:02 +00:00
|
|
|
+
|
1998-07-22 02:53:14 +00:00
|
|
|
+/* FreeBSD using a.out does not support DWARF2 unwinding mechanisms.
|
|
|
|
+ Thus, need the equivalent of "-fsjlj-exceptions" (use setjmp/longjmp
|
|
|
|
+ for exceptions). */
|
|
|
|
+#define DWARF2_UNWIND_INFO 0
|
1998-04-12 13:29:02 +00:00
|
|
|
|
1998-03-11 11:49:14 +00:00
|
|
|
/* Like the default, except no -lg. */
|
1998-05-22 00:26:29 +00:00
|
|
|
-#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
|
|
|
|
+#define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}"
|
|
|
|
|
|
|
|
#undef SIZE_TYPE
|
|
|
|
#define SIZE_TYPE "unsigned int"
|
1998-07-22 02:53:14 +00:00
|
|
|
@@ -114,6 +119,7 @@
|
1998-06-30 21:10:27 +00:00
|
|
|
|
|
|
|
#define TYPE_ASM_OP ".type"
|
|
|
|
#define SIZE_ASM_OP ".size"
|
|
|
|
+#define SET_ASM_OP ".set"
|
|
|
|
|
|
|
|
/* The following macro defines the format used to output the second
|
|
|
|
operand of the .type assembler directive. Different svr4 assemblers
|
1998-07-22 02:53:14 +00:00
|
|
|
@@ -123,6 +129,12 @@
|
1998-06-30 21:10:27 +00:00
|
|
|
|
|
|
|
#define TYPE_OPERAND_FMT "@%s"
|
|
|
|
|
|
|
|
+#define HANDLE_SYSV_PRAGMA 1
|
|
|
|
+
|
|
|
|
+#define ASM_WEAKEN_LABEL(FILE,NAME) \
|
|
|
|
+ do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
|
|
|
|
+ fputc ('\n', FILE); } while (0)
|
|
|
|
+
|
|
|
|
/* Write the extra assembler code needed to declare a function's result.
|
|
|
|
Most svr4 assemblers don't require any special declaration of the
|
|
|
|
result value, but there are exceptions. */
|
1998-07-22 02:53:14 +00:00
|
|
|
@@ -215,7 +227,17 @@
|
1998-05-22 00:26:29 +00:00
|
|
|
|
|
|
|
#define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k}"
|
|
|
|
#define LINK_SPEC \
|
|
|
|
- "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*}"
|
|
|
|
+ "%{p:%e`-p' not supported; use `-pg' and gprof(1)} \
|
|
|
|
+ %{shared:-Bshareable} \
|
|
|
|
+ %{!shared:%{!nostdlib:%{!r:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} \
|
|
|
|
+ %{pg:-Bstatic} %{Z}} \
|
|
|
|
+ %{assert*} %{R*}"
|
|
|
|
+
|
|
|
|
+#define STARTFILE_SPEC \
|
|
|
|
+ "%{shared:c++rt0.o%s} \
|
|
|
|
+ %{!shared:%{pg:gcrt0.o%s}%{!pg:%{static:scrt0.o%s}%{!static:crt0.o%s}}}"
|
1998-06-30 21:10:27 +00:00
|
|
|
+
|
|
|
|
+#define MD_STARTFILE_PREFIX "/usr/lib/aout/"
|
1998-05-22 00:26:29 +00:00
|
|
|
|
|
|
|
/* This is defined when gcc is compiled in the BSD-directory-tree, and must
|
|
|
|
* make up for the gap to all the stuff done in the GNU-makefiles.
|
1998-07-22 02:53:14 +00:00
|
|
|
|