head	1.23;
access;
symbols
	old_old_old_RELEASE_4_8_0:1.22
	old_old_old_RELEASE_5_0_0:1.22
	old_old_old_gcc_32_20021007:1.22
	old_old_old_RELEASE_4_7_0:1.22
	old_old_old_old_RELEASE_4_6_1:1.22
	old_old_old_old_RELEASE_4_6_0:1.22
	old_old_old_old_RELEASE_5_0_DP1:1.22
	old_old_old_old_old_egcs_20020128:1.22
	old_old_old_old_old_RELEASE_4_5_0:1.21
	old_old_old_old_old_RELEASE_4_4_0:1.21
	old_old_old_old_old_egcs_20010430:1.21
	old_old_old_old_old_RELEASE_4_3_0:1.21
	old_old_old_old_old_egcs_20010205:1.21
	old_old_old_old_old_egcs_20001225:1.21
	old_old_old_old_old_egcs_20001218:1.21
	old_old_old_old_old_egcs_20001211:1.21
	old_old_old_old_old_egcs_20001120:1.21
	old_old_old_old_old_RELEASE_4_2_0:1.20
	old_old_old_old_old_egcs_20001002:1.20
	old_old_old_old_old_RELEASE_4_1_1:1.20
	old_old_old_old_old_egcs_20000828:1.20
	old_old_old_old_old_egcs_20000717:1.20
	old_old_old_old_old_egcs_20000501:1.19
	old_old_old_old_old_RELEASE_4_1_0:1.19
	old_old_old_old_old_RELEASE_3_5_0:1.19
	old_old_old_old_old_egcs_20000313:1.19
	old_old_old_old_old_RELEASE_4_0_0:1.19
	old_old_old_old_old_egcs_20000306:1.19
	old_old_old_old_old_egcs_20000221:1.19
	old_old_old_old_old_egcs_20000207:1.19
	old_old_old_old_old_RELEASE_3_4_0:1.17
	old_old_old_old_old_egcs_991102:1.17
	old_old_old_old_old_egcs_991110:1.17
	old_old_old_old_old_egcs_991025:1.17
	old_old_old_old_old_egcs_990920:1.17
	old_old_old_old_old_RELEASE_3_3_0:1.17
	old_old_old_old_old_egcs_990629:1.16
	old_old_old_old_old_egcs_990718:1.17
	old_old_old_old_old_egcs_990712:1.16
	old_old_old_old_old_egcs_990616:1.14
	old_old_old_old_old_egcs_990623:1.16
	old_old_old_old_old_egcs_990524:1.12
	old_old_old_old_old_RELEASE_3_2_0:1.11
	old_old_old_old_old_egcs_990418:1.11
	old_old_old_old_old_egcs_1_1_2:1.8
	old_old_old_old_old_RELEASE_3_1_0:1.7
	old_old_old_old_old_egcs_1_1_1:1.5
	old_old_old_old_old_RELEASE_2_2_8:1.5
	old_old_old_old_old_RELEASE_3_0_0:1.5
	old_old_old_old_old_egcs_980315:1.3
	old_old_old_old_old_egcs_102:1.2
	old_old_old_old_old_egcs_980221:1.1
	old_old_old_old_old_RELEASE_2_2_6:1.1;
locks; strict;
comment	@# @;


1.23
date	2003.04.24.10.37.23;	author gerald;	state dead;
branches;
next	1.22;

1.22
date	2002.02.03.07.15.30;	author obrien;	state Exp;
branches;
next	1.21;

1.21
date	2000.11.28.18.55.06;	author obrien;	state Exp;
branches;
next	1.20;

1.20
date	2000.09.05.16.59.10;	author obrien;	state Exp;
branches;
next	1.19;

1.19
date	2000.02.14.11.39.35;	author obrien;	state Exp;
branches;
next	1.18;

1.18
date	2000.01.17.12.27.57;	author obrien;	state Exp;
branches;
next	1.17;

1.17
date	99.07.25.03.34.39;	author obrien;	state Exp;
branches;
next	1.16;

1.16
date	99.07.04.20.57.15;	author obrien;	state Exp;
branches;
next	1.15;

1.15
date	99.06.24.19.11.57;	author obrien;	state Exp;
branches;
next	1.14;

1.14
date	99.06.21.18.17.56;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	99.06.15.07.31.19;	author obrien;	state Exp;
branches;
next	1.12;

1.12
date	99.05.26.10.26.29;	author obrien;	state Exp;
branches;
next	1.11;

1.11
date	99.04.22.00.40.40;	author obrien;	state Exp;
branches;
next	1.10;

1.10
date	99.04.21.07.48.59;	author obrien;	state Exp;
branches;
next	1.9;

1.9
date	99.03.22.01.35.36;	author obrien;	state Exp;
branches;
next	1.8;

1.8
date	99.03.17.00.40.26;	author obrien;	state Exp;
branches;
next	1.7;

1.7
date	99.02.09.18.24.50;	author obrien;	state Exp;
branches;
next	1.6;

1.6
date	99.01.23.06.08.11;	author obrien;	state Exp;
branches;
next	1.5;

1.5
date	98.10.08.21.33.02;	author jdp;	state Exp;
branches;
next	1.4;

1.4
date	98.04.14.10.17.31;	author obrien;	state dead;
branches;
next	1.3;

1.3
date	98.04.07.01.18.13;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	98.04.07.01.14.27;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	98.02.14.04.18.25;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.23
log
@Fifty-one months after ELF flag day, and after the system compiler became
ELF-only as well, remove support for aout from the next generation of GCC.

Suggested by:	Loren James Rittle <rittle@@labs.mot.com>
Discussed with:	obrien
@
text
@--- 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  CC1_SPEC
+#define CC1_SPEC "\
+  %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
+  %{maout: %{!mno-underscores: %{!munderscores: -munderscores }}}"
+
+#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 
@@@@ -84,11 +92,18 @@@@
    
 #undef	STARTFILE_SPEC
 #define STARTFILE_SPEC \
-  "%{!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}"
+  "%{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:%{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 
@@@@ -98,7 +113,7 @@@@
 
 #undef	ENDFILE_SPEC
 #define ENDFILE_SPEC \
-  "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
+  "%{!maout: %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s}"
 
 /* Provide a LINK_SPEC appropriate for FreeBSD.  Here we provide support
    for the special GCC options -static and -shared, which allow us to
@


1.22
log
@Upgrade to the 28-Jan-2002 GCC 3.1 development snapshot.
@
text
@@


1.21
log
@Upgrade to the 2000-11-20 GCC 2.97 development snapshot.
This one should be using libstdc++ v3 and the new 3.0 C++ ABI now.
@
text
@d1 3
a3 3
--- 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 @@@@
d7 1
a7 5
-    
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__\
- -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
 
d15 1
a15 1
+    
d18 1
a18 2
 	of the support for getting C++ file-scope static object constructed 
@@@@ -88,11 +92,11 @@@@
d29 10
a38 3
+  %{!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}}"
d42 1
a42 1
@@@@ -102,7 +106,7 @@@@
@


1.20
log
@Upgrade to the 2000-07-17 GCC 2.96 development snapshot.
@
text
@d1 3
a3 14
--- 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]
 
+/* Don't use EGCS's normal profiling code -- we have our own fine-grained
+   basic block profiling.  */
+#define NO_PROFILE_COUNTERS
+
 /* Tell final.c that we don't need a label passed to mcount.  */
 
 #undef FUNCTION_PROFILER
@@@@ -73,11 +77,15 @@@@
d10 1
a10 1
- -Asystem(unix) -Asystem(bsd) -Asystem(FreeBSD)"
d12 1
a12 1
+#undef CC1_SPEC
d23 1
a23 1
@@@@ -85,11 +93,11 @@@@
d40 1
a40 1
@@@@ -99,7 +107,7 @@@@
@


1.19
log
@Upgrade to the 2000-02-07 GCC 2.96 development snapshot.
@
text
@d9 1
a9 1
+#define NO_PROFILE_DATA
@


1.18
log
@Upgrade to the 2000-01-10 GCC 2.96 development snapshot.
@
text
@d1 5
a5 5
--- gcc/config/i386/freebsd.h.orig	Mon Nov 22 22:17:32 1999
+++ gcc/config/i386/freebsd.h	Wed Dec 15 02:32:20 1999
@@@@ -117,6 +117,10 @@@@
  : ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (n)+3 \
  : (-1))
d14 3
a16 1
@@@@ -140,7 +144,15 @@@@
d18 5
a22 5
     
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Di386 -Dunix -D__ELF__ -D__FreeBSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
+#define CPP_PREDEFINES "-Di386 -Acpu(i386) -Amachine(i386)" CPP_FBSD_PREDEFINES
+
d30 1
a30 1
 
d33 2
a34 1
@@@@ -149,11 +161,11 @@@@
d51 1
a51 1
@@@@ -163,7 +175,7 @@@@
@


1.17
log
@Fix SWITCH_TAKES_ARG / WORD_SWITCH_TAKES_ARG breakage on the Alpha created
when I changed from defining these in gcc/config/freebsd.h and instead defined
extensable FreeBSD-wide definitions.

While I am here, move the *SWITCH_TAKES_ARG = FBSD_*SWITCH_TAKES_ARG
assignments to the global file to remove one more thing from the arch specific
config files.
@
text
@d1 3
a3 3
--- gcc/config/i386/freebsd.h.orig	Thu Jun 17 05:33:32 1999
+++ gcc/config/i386/freebsd.h	Sat Jul 24 17:59:06 1999
@@@@ -135,6 +135,10 @@@@
d14 1
a14 1
@@@@ -162,22 +166,30 @@@@
a19 16
 
 #undef CPP_SPEC
-#define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
+#if TARGET_CPU_DEFAULT == 2
+#define CPP_SPEC "\
+  %{!maout: -D__ELF__} \
+  %{munderscores: -D__UNDERSCORES__} \
+  %{maout: %{!mno-underscores: -D__UNDERSCORES__}} \
+  %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!m386:-D__i486__}"
+#else
+#define CPP_SPEC "\
+  %{!maout: -D__ELF__} \
+  %{munderscores: -D__UNDERSCORES__} \
+  %{maout: %{!mno-underscores: -D__UNDERSCORES__}} \
+  %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{m486:-D__i486__}"
+#endif
d25 1
a25 12
 
-/* This defines which switch letters take arguments.  On FreeBSD, most of
-   the normal cases (defined in gcc.c) apply, and we also have -h* and
-   -z* options (for the linker) (comming from svr4).
-   We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */
-
-#undef SWITCH_TAKES_ARG
-#define SWITCH_TAKES_ARG(CHAR) \
-  (DEFAULT_SWITCH_TAKES_ARG (CHAR) \
-   || (CHAR) == 'h' \
-   || (CHAR) == 'z' \
-   || (CHAR) == 'R')
d31 1
a31 1
@@@@ -186,11 +198,11 @@@@
d48 1
a48 1
@@@@ -200,7 +212,7 @@@@
d55 2
a56 2
 /* Provide a LIB_SPEC appropriate for FreeBSD.  Just select the appropriate
    libc, depending on whether we're doing profiling or need threads support.
@


1.16
log
@Changes to work with updated files/freebsd.h.
@
text
@d2 1
a2 1
+++ gcc/config/i386/freebsd.h	Mon Jun 28 03:14:19 1999
d14 1
a14 1
@@@@ -162,22 +166,36 @@@@
d46 2
a47 4
+#undef  ASM_SPEC
+#define ASM_SPEC	"%{v*: -v} %{maout: %{fpic:-k} %{fPIC:-k}}"
 
 #undef SWITCH_TAKES_ARG
d53 2
a54 4
+#define SWITCH_TAKES_ARG(CHAR) (FBSD_SWITCH_TAKES_ARG(CHAR))
+
+#undef WORD_SWITCH_TAKES_ARG
+#define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
d58 1
a58 1
@@@@ -186,11 +204,11 @@@@
d75 1
a75 1
@@@@ -200,7 +218,7 @@@@
@


1.15
log
@Upgrade to the 19990623 GCC 2.95 pre-release snapshot.
@
text
@d2 4
a5 2
+++ gcc/config/i386/freebsd.h	Thu Jun 24 11:16:34 1999
@@@@ -137,6 +137,8 @@@@
d7 4
a12 2
+#define NO_PROFILE_DATA
+
d14 1
a14 3
 #define FUNCTION_PROFILER(FILE, LABELNO)  \
 {									\
@@@@ -162,10 +164,30 @@@@
d41 5
a45 1
+
d49 14
a62 3
 /* This defines which switch letters take arguments.  On FreeBSD, most of
    the normal cases (defined in gcc.c) apply, and we also have -h* and
@@@@ -186,11 +208,11 @@@@
d79 1
a79 1
@@@@ -200,7 +222,7 @@@@
@


1.14
log
@Update to the 19990616 GCC 2.95-prerelease.
@
text
@d1 6
a6 9
--- gcc/config/i386/freebsd.h.orig	Mon Jun 14 17:58:11 1999
+++ gcc/config/i386/freebsd.h	Mon Jun 21 05:18:57 1999
@@@@ -135,23 +135,16 @@@@
  : ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (n)+3 \
  : (-1))
 
-/* Output assembler code to FILE to increment profiler label # LABELNO
-   for profiling a function entry.  */
+/* Tell final.c that we don't need a label passed to mcount.  */
d8 1
a8 1
 
d12 1
a12 17
   if (flag_pic)								\
-    {									\
-      fprintf (FILE, "\tleal %sP%d@@GOTOFF(%%ebx),%%edx\n",		\
-	       LPREFIX, (LABELNO));					\
-      fprintf (FILE, "\tcall *mcount@@GOT(%%ebx)\n");			\
-    }									\
+      fprintf (FILE, "\tcall *.mcount@@GOT(%%ebx)\n");			\
   else									\
-    {									\
-      fprintf (FILE, "\tmovl $%sP%d,%%edx\n", LPREFIX, (LABELNO));	\
-      fprintf (FILE, "\tcall mcount\n");				\
-    }									\
+      fprintf (FILE, "\tcall .mcount\n");				\
 }
 
 #undef SIZE_TYPE
@@@@ -170,10 +163,30 @@@@
d45 1
a45 1
@@@@ -194,11 +207,11 @@@@
d62 1
a62 1
@@@@ -208,7 +221,7 @@@@
a70 9
@@@@ -247,7 +260,7 @@@@
       %{!static: \
         %{rdynamic:-export-dynamic} \
 	%{!dynamic-linker:-dynamic-linker /usr/libexec/ld-elf.so.1}} \
-    %{static:-Bstatic}}} \
+    %{static:-Bstatic}} \
   %{symbolic:-Bsymbolic}"
 
 /* A C statement to output to the stdio stream FILE an assembler
@


1.13
log
@Update to the 1999-06-08 (gcc 2.95 prerelease).
@
text
@d1 3
a3 3
--- gcc/config/i386/freebsd.h.orig	Thu Jun  3 16:18:41 1999
+++ gcc/config/i386/freebsd.h	Mon Jun 14 19:19:42 1999
@@@@ -135,22 +135,19 @@@@
d16 1
a16 1
     {									\
d20 1
a21 1
     }									\
d23 1
a23 1
     {									\
d26 1
a27 1
     }									\
d30 2
a31 1
@@@@ -170,10 +167,30 @@@@
d64 20
a83 1
@@@@ -210,23 +227,6 @@@@
d85 2
a86 1
   "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
d88 3
a90 41
-
-#undef	LIB_SPEC
-#if 1
-/* We no longer link with libc_p.a or libg.a by default. If you
- * want to profile or debug the C library, please add
- * -lc_p or -ggdb to LDFLAGS at the link time, respectively.
- */
-#define LIB_SPEC \
-  "%{!shared: %{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} \
-     %{!ggdb:-lc} %{ggdb:-lg}}"
-#else
-#define LIB_SPEC \
-  "%{!shared: \
-     %{mieee-fp:-lieee} %{p:-lgmon -lc_p} %{pg:-lgmon -lc_p} \
-       %{!p:%{!pg:%{!g*:-lc} %{g*:-lg}}}}"
-#endif
-
 /* Provide a LINK_SPEC appropriate for FreeBSD.  Here we provide support
    for the special GCC options -static and -shared, which allow us to
    link things in one of these three modes by applying the appropriate
@@@@ -242,13 +242,24 @@@@
    done.  */
 
 #undef	LINK_SPEC
-#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
-  %{!shared: \
-    %{!ibcs: \
+#define LINK_SPEC "\
+ %{p:%e`-p' not supported; use `-pg' and gprof(1)} \
+ %{v:-V} \
+  %{maout: %{shared:-Bshareable} \
+    %{!shared:%{!nostdlib:%{!r:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} \
+      %{pg:-Bstatic} %{Z}} \
+    %{assert*} %{R*}} \
+  %{!maout: \
+    -m elf_i386 \
+    %{Wl,*:%*} \
+    %{assert*} %{R*} %{rpath*} %{defsym*} \
+    %{shared:-Bshareable %{h*} %{soname*}} \
+    %{symbolic:-Bsymbolic} \
+    %{!shared: \
d92 1
a92 1
 	%{rdynamic:-export-dynamic} \
d94 3
a96 2
-	%{static:-Bstatic}}}"
+      %{static:-Bstatic}}}"
a98 17
    command to advance the location counter to a multiple of 1<<LOG
@@@@ -263,3 +274,15 @@@@
     else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
   }
 #endif
+
+#undef STARTFILE_SPEC
+#define STARTFILE_SPEC "\
+  %{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}}"
+
+#undef  ENDFILE_SPEC
+#define ENDFILE_SPEC \
+  "%{!maout: %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s}"
@


1.12
log
@Upgrade to 19990524 gcc-2.95 prerelease.
@
text
@d1 3
a3 21
--- gcc/config/i386/freebsd.h.orig	Sun May 23 12:42:51 1999
+++ gcc/config/i386/freebsd.h	Wed May 26 02:08:55 1999
@@@@ -21,6 +21,17 @@@@
 the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
+
+#include "i386/att.h"	/* Use the i386 AT&T assembler syntax */
+
+/* Use stabs instead of DWARF debug format.  */
+#undef PREFERRED_DEBUGGING_TYPE
+#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
+#include "svr4.h"
+
+/* Get generic FreeBSD definitions.  */
+#include <freebsd.h>
+
 #undef TARGET_VERSION
 #define TARGET_VERSION fprintf (stderr, " (i386 FreeBSD/ELF)");
 
@@@@ -113,22 +124,19 @@@@
d30 1
a30 1
@@@@ -145,27 +153,31 @@@@
d39 28
d77 1
a77 7
+#if TARGET_CPU_DEFAULT == 2
+#define CPP_SPEC "\
+%{!maout: -D__ELF__} \
+%{munderscores: -D__UNDERSCORES__} \
+%{maout: %{!mno-underscores: -D__UNDERSCORES__}} \
+%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!m386:-D__i486__}"
 #else
d82 2
a83 15
+#define CPP_SPEC "\
+%{!maout: -D__ELF__} \
+%{munderscores: -D__UNDERSCORES__} \
+%{maout: %{!mno-underscores: -D__UNDERSCORES__}} \
+%{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{m486:-D__i486__}"
 #endif
 
+#undef CC1_SPEC
+#define CC1_SPEC "\
+%{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
+%{maout: %{!mno-underscores: %{!munderscores: -munderscores }}}"
+
+#undef  ASM_SPEC
+#define ASM_SPEC	"%{v*: -v} %{maout: %{fpic:-k} %{fPIC:-k}}"
+
d87 1
a87 1
@@@@ -181,13 +193,23 @@@@
d96 1
d116 1
a116 1
@@@@ -202,3 +224,15 @@@@
@


1.11
log
@Sync up with some diffs I sent to Cygnus.
@
text
@d1 2
a2 2
--- gcc/config/i386/freebsd.h.orig	Fri Apr  9 13:31:31 1999
+++ gcc/config/i386/freebsd.h	Wed Apr 21 17:36:21 1999
d117 3
a119 5
-	%{rdynamic:-export-dynamic} \
-	%{!dynamic-linker:-dynamic-linker /usr/libexec/ld-elf.so.1}} \
-	%{static:-static}}}"
+	%{rdynamic: -export-dynamic} \
+	%{!dynamic-linker: -dynamic-linker /usr/libexec/ld-elf.so.1}} \
d122 3
a124 3
 /* Get perform_* macros to build libgcc.a.  */
 
@@@@ -204,3 +226,15 @@@@
@


1.10
log
@I give you the latest and greatest of the EGCS snapshot series.
This is their bleeding edge offering.  This will enable us to better track
the direction EGCS is going for future upgrades of /usr/contrib/egcs/.

Above ver 1.1.2, this offering gives you many C++ fixes/enhancements, *and*
a native Java compiler.
@
text
@d1 3
a3 3
--- gcc/config/i386/freebsd.h.orig	Tue Feb 16 15:51:31 1999
+++ gcc/config/i386/freebsd.h	Mon Apr 19 09:22:46 1999
@@@@ -21,6 +21,15 @@@@
d8 2
d21 1
a21 1
@@@@ -113,22 +122,19 @@@@
d48 1
a48 1
@@@@ -145,27 +151,31 @@@@
d96 1
a96 1
@@@@ -181,13 +191,23 @@@@
d126 1
a126 1
@@@@ -204,3 +224,15 @@@@
@


1.9
log
@* Add support for ``-pthead''
* Add Alpha support

Obtained from:	Alpha bits taken from Hidetoshi Shimokawa's
                <simokawa@@FreeBSD.ORG> work
@
text
@d1 3
a3 3
--- gcc/config/i386/freebsd.h.orig	Mon Mar  1 14:47:32 1999
+++ gcc/config/i386/freebsd.h	Sun Mar 21 16:58:39 1999
@@@@ -21,19 +21,13 @@@@
d8 5
d19 1
a19 14
-/* The svr4 ABI for the i386 says that records and unions are returned
-   in memory.  */
-/* On FreeBSD, we do not. */
-#undef DEFAULT_PCC_STRUCT_RETURN
-#define DEFAULT_PCC_STRUCT_RETURN 0
-
-/* This gets defined in tm.h->linux.h->svr4.h, and keeps us from using
-   libraries compiled with the native cc, so undef it. */
-#undef NO_DOLLAR_IN_LABEL
-
 /* This is how to output an element of a case-vector that is relative.
    This is only used for PIC code.  See comments by the `casesi' insn in
    i386.md for an explanation of the expression this outputs. */
@@@@ -113,22 +107,19 @@@@
d46 1
a46 1
@@@@ -145,26 +136,16 @@@@
d51 1
a51 1
+#define CPP_PREDEFINES "-Di386 -D__ELF__ -Acpu(i386) -Amachine(i386)" CPP_FBSD_PREDEFINES
d55 2
a56 5
+#define CPP_SPEC \
+  "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{m486:-D__i486__}"
+  /* %{pthread:-D_REENTRANT} */
 
 #undef	LIB_SPEC
d65 8
a72 2
-#else
 #define LIB_SPEC \
d76 15
a90 3
-#endif
+  "%{!shared:%{!pg:%{!pthread:%{!kthread:-lc}%{kthread:-lpthread -lc}}%{pthread:-lc_r}}%{pg:%{!pthread:%{!kthread:-lc_p}%{kthread:-lpthread_p -lc_p}}%{pthread:-lc_r_p}}}"
 
d93 47
@


1.8
log
@Upgrade to 1.1.2 release.
@
text
@d2 26
a27 2
+++ gcc/config/i386/freebsd.h	Sat Mar 13 19:25:53 1999
@@@@ -113,22 +113,19 @@@@
d54 12
a65 2
@@@@ -151,20 +148,8 @@@@
 #define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
d73 1
a73 1
 #define LIB_SPEC \
d77 1
a77 1
-#define LIB_SPEC \
d82 1
a82 1
+  "%{!shared: %{p:-lc_p} %{pg:-lc_p} %{!p:%{!pg:-lc}}}"
@


1.7
log
@GNUHOST is now "i386-unknown-freebsd" for an ELF machine, and
"i386-unknown-freebsdaout" for an a.out machine.
@
text
@d1 3
a3 18
--- gcc/config/i386/freebsd.h.orig	Mon Jul 13 15:38:36 1998
+++ gcc/config/i386/freebsd.h	Fri Jan 22 04:11:03 1999
@@@@ -26,8 +26,13 @@@@
 
 /* The svr4 ABI for the i386 says that records and unions are returned
    in memory.  */
+/* On FreeBSD, we do not. */
 #undef DEFAULT_PCC_STRUCT_RETURN
-#define DEFAULT_PCC_STRUCT_RETURN 1
+#define DEFAULT_PCC_STRUCT_RETURN 0
+
+/* This gets defined in tm.h->linux.h->svr4.h, and keeps us from using
+   libraries compiled with the native cc, so undef it. */
+#undef NO_DOLLAR_IN_LABEL
 
 /* This is how to output an element of a case-vector that is relative.
    This is only used for PIC code.  See comments by the `casesi' insn in
@@@@ -108,22 +113,19 @@@@
d30 1
a30 1
@@@@ -146,20 +148,8 @@@@
d39 1
a39 1
-#define LIB_SPEC \
d43 1
a43 1
 #define LIB_SPEC \
@


1.6
log
@Allow '$' in labels as our offical compiler does.

Reviewed by:	jdp
Submitted by:	Keith Walker <kew@@timesink.spk.wa.us>
@
text
@d1 2
a2 2
--- gcc/config/i386/freebsd-elf.h.orig	Mon Jul 13 15:38:36 1998
+++ gcc/config/i386/freebsd-elf.h	Fri Jan 22 04:11:03 1999
@


1.5
log
@Make profiling work.
@
text
@d2 17
a18 2
+++ gcc/config/i386/freebsd-elf.h	Wed Oct  7 22:18:02 1998
@@@@ -108,22 +108,19 @@@@
d45 1
a45 1
@@@@ -146,20 +143,8 @@@@
d54 1
a54 1
 #define LIB_SPEC \
d58 1
a58 1
-#define LIB_SPEC \
@


1.4
log
@Upgrade to 980406 snapshot
Reviewed by:	my PITA ecs240 project
@
text
@d1 26
a26 3
--- gcc/config/i386/freebsd-elf.h.orig	Sat Dec  6 09:25:14 1997
+++ gcc/config/i386/freebsd-elf.h	Fri Feb 13 11:43:46 1998
@@@@ -127,6 +127,9 @@@@
d30 19
a48 12
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
+
 #undef SIZE_TYPE
 #define SIZE_TYPE "unsigned int"
  
@@@@ -140,7 +143,7 @@@@
 #define WCHAR_TYPE_SIZE BITS_PER_WORD
     
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
+#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
d50 2
a51 2
 #undef CPP_SPEC
 #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
@


1.3
log
@Upgrade to the 980315 snapshot.
@
text
@@


1.2
log
@Upgrade to version 1.0.2 release.
@
text
@d1 2
a2 2
--- gcc/config/i386/freebsd-elf.h.orig	Fri Mar  6 16:11:54 1998
+++ gcc/config/i386/freebsd-elf.h	Sun Mar 22 18:01:59 1998
d17 2
a18 2
-#define CPP_PREDEFINES "-Di386 -Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
+#define CPP_PREDEFINES "-Di386 -Dunix -D__ELF__ -D__FreeBSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
@


1.1
log
@Upgrade to 1998-02-05 SNAP.  Fixes problems several have had with 1.0.1.
Including linking with the STL vector class.
@
text
@d1 2
a2 2
--- gcc/config/i386/freebsd-elf.h.orig	Sat Dec  6 09:25:14 1997
+++ gcc/config/i386/freebsd-elf.h	Fri Feb 13 11:43:46 1998
d17 2
a18 2
-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
+#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
@
