summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/config/freebsd.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2008-09-01 18:46:03 +0000
committerobrien <obrien@FreeBSD.org>2008-09-01 18:46:03 +0000
commitf18a1ee8d409a05ce2da0ed78cc3075560def165 (patch)
treed4a5d7ba05f3e4eac86517fd9574ef2710df6e58 /contrib/gcc/config/freebsd.h
parent1a39c79ce0aa29aa14db8a450a4ac4f989d997b5 (diff)
downloadFreeBSD-src-f18a1ee8d409a05ce2da0ed78cc3075560def165.zip
FreeBSD-src-f18a1ee8d409a05ce2da0ed78cc3075560def165.tar.gz
Add FreeBSD/MIPS support to GCC.
Diffstat (limited to 'contrib/gcc/config/freebsd.h')
-rw-r--r--contrib/gcc/config/freebsd.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/contrib/gcc/config/freebsd.h b/contrib/gcc/config/freebsd.h
index 9a5eef5..8eb434e 100644
--- a/contrib/gcc/config/freebsd.h
+++ b/contrib/gcc/config/freebsd.h
@@ -63,15 +63,26 @@ Boston, MA 02110-1301, USA. */
/* All FreeBSD Architectures support the ELF object file format. */
#undef OBJECT_FORMAT_ELF
#define OBJECT_FORMAT_ELF 1
+#define TARGET_ELF 1
/* Don't assume anything about the header files. */
#undef NO_IMPLICIT_EXTERN_C
#define NO_IMPLICIT_EXTERN_C 1
/* Make gcc agree with FreeBSD's standard headers (<machine/ansi.h>, etc...) */
+#undef SIZE_TYPE
+#define SIZE_TYPE FBSD_SIZE_TYPE
+#undef PTRDIFF_TYPE
+#define PTRDIFF_TYPE FBSD_PTRDIFF_TYPE
#undef WCHAR_TYPE
#define WCHAR_TYPE "int"
+#undef WCHAR_TYPE_SIZE
+#define WCHAR_TYPE_SIZE 32
+#undef WINT_TYPE
+#define WINT_TYPE "int"
+#undef WINT_TYPE_SIZE
+#define WINT_TYPE_SIZE 32
#ifdef FREEBSD_NATIVE
#define LIBSTDCXX_PROFILE "-lstdc++_p"
@@ -91,6 +102,6 @@ Boston, MA 02110-1301, USA. */
#undef NO_DOLLAR_IN_LABEL
/* Define this so we can compile MS code for use with WINE. */
-#define HANDLE_PRAGMA_PACK_PUSH_POP
+#define HANDLE_PRAGMA_PACK_PUSH_POP 1
#define TARGET_POSIX_IO
OpenPOWER on IntegriCloud