Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Dec 2003 14:23:52 -0800 (PST)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 44318 for review
Message-ID:  <200312252223.hBPMNqCk020628@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=44318

Change 44318 by jmallett@jmallett_oingo on 2003/12/25 14:23:09

	Catch up to config changes, I think this is more or less right.
	Now I can at least build gcc again.  There's some very trivial
	warnings now, but I'm not going to take time for them.  Don't know
	if they have any measurable effect, we'll see.

Affected files ...

.. //depot/projects/mips/contrib/gcc/config/mips/freebsd.h#9 edit

Differences ...

==== //depot/projects/mips/contrib/gcc/config/mips/freebsd.h#9 (text+ko) ====

@@ -20,31 +20,15 @@
 along with GNU CC; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
-/* Override the defaults, which exist to force the proper definition.  */
-
-#undef	CPP_OS_DEFAULT_SPEC
-#define CPP_OS_DEFAULT_SPEC "%(cpp_os_freebsd)"
-
-#undef	STARTFILE_DEFAULT_SPEC
-#define STARTFILE_DEFAULT_SPEC "%(startfile_freebsd)"
-
-#undef	ENDFILE_DEFAULT_SPEC
-#define ENDFILE_DEFAULT_SPEC "%(endfile_freebsd)"
+#undef	FBSD_TARGET_CPU_CPP_BUILTINS
+#define	FBSD_TARGET_CPU_CPP_BUILTINS()		\
+  do						\
+    {						\
+      builtin_define ("__mips__");		\
+      builtin_define ("__LP64__");		\
+    }						\
+  while (0)
 
-#undef	LIB_DEFAULT_SPEC
-#define LIB_DEFAULT_SPEC "%(lib_freebsd)"
-
-#undef	LINK_START_DEFAULT_SPEC
-#define LINK_START_DEFAULT_SPEC "%(link_start_freebsd)"
-
-#undef	LINK_OS_DEFAULT_SPEC
-#define	LINK_OS_DEFAULT_SPEC "%(link_os_freebsd)"
-
-/* Define things to cpp common to all FreeBSD systems, and our arch. */
-#undef	CPP_PREDEFINES
-#define	CPP_PREDEFINES FBSD_CPP_PREDEFINES "-D__mips__"
-
-
 /************************[  Target stuff  ]***********************************/
 
 /* Define the actual types of some ANSI-mandated types.  
@@ -65,12 +49,11 @@
 
 /* Define the target in terms of a bitmask (see mips.h for MASK_ defns).  */
 #undef	TARGET_ENDIAN_DEFAULT
-#define TARGET_ENDIAN_DEFAULT MASK_BIG_ENDIAN
+#define TARGET_ENDIAN_DEFAULT (MASK_BIG_ENDIAN)
 
 #undef	TARGET_CPU_DEFAULT
 #define	TARGET_CPU_DEFAULT (MASK_LONG64 | MASK_64BIT | MASK_GAS)
 
-
 /* No mips-tfile. */
 #undef ASM_FINAL_SPEC
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312252223.hBPMNqCk020628>