Patchwork Define SUBTARGET32_DEFAULT_CPU on FreeBSD

login
register
mail settings
Submitter Gerald Pfeifer
Date Feb. 15, 2011, 1:25 a.m.
Message ID <alpine.LFD.2.02.1102150224080.2792@ybpnyubfg6.ybpnyqbznva6>
Download mbox | patch
Permalink /patch/83172/
State New
Headers show

Comments

Gerald Pfeifer - Feb. 15, 2011, 1:25 a.m.
On Sat, 18 Sep 2010, Gerald Pfeifer wrote:
>> The patch is ok.

Now also on the GCC 4.5 branch.  Here is the patch.
Gerald Pfeifer - Feb. 15, 2011, 1:26 a.m.
On Tue, 15 Feb 2011, Gerald Pfeifer wrote:
> +2011-02-15  Tijl Coosemans  <tijl@coosemans.org>
> +            Gerald Pfeifer  <gerald@pfeifer.com>
> +
> +	* config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
> +	Update copyright years.

Actually committed without my name in the ChangeLog...  Updating
the copyright year doesn't warrant that. ;-)

Gerald

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 170163)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@ 
+2011-02-15  Tijl Coosemans  <tijl@coosemans.org>
+            Gerald Pfeifer  <gerald@pfeifer.com>
+
+	* config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
+	Update copyright years.
+
 2011-02-11  Bernd Schmidt  <bernds@codesourcery.com>
 
 	PR rtl-optimization/47166
Index: config/i386/freebsd.h
===================================================================
--- config/i386/freebsd.h	(revision 170163)
+++ config/i386/freebsd.h	(working copy)
@@ -1,5 +1,6 @@ 
 /* Definitions for Intel 386 running FreeBSD with ELF format
-   Copyright (C) 1996, 2000, 2002, 2004, 2007 Free Software Foundation, Inc.
+   Copyright (C) 1996, 2000, 2002, 2004, 2007, 2011
+   Free Software Foundation, Inc.
    Contributed by Eric Youngdale.
    Modified for stabs-in-ELF by H.J. Lu.
    Adapted from GNU/Linux version by John Polstra.
@@ -138,3 +139,8 @@ 
    compiler get the contents of <float.h> and std::numeric_limits correct.  */
 #undef TARGET_96_ROUND_53_LONG_DOUBLE
 #define TARGET_96_ROUND_53_LONG_DOUBLE (!TARGET_64BIT)
+
+/* Support for i386 has been removed from FreeBSD 6.0 onward.  */
+#if FBSD_MAJOR >= 6
+#define SUBTARGET32_DEFAULT_CPU "i486"
+#endif