Changeset View
Changeset View
Standalone View
Standalone View
devel/powerpc64-gcc/files/patch-gcc-freebsd-mips
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
/* Output the size directive for a decl in rest_of_decl_compilation | /* Output the size directive for a decl in rest_of_decl_compilation | ||||
in the case where we did not do so before the initializer. | in the case where we did not do so before the initializer. | ||||
diff --git a/gcc/config/mips/freebsd.h b/gcc/config/mips/freebsd.h | diff --git a/gcc/config/mips/freebsd.h b/gcc/config/mips/freebsd.h | ||||
new file mode 100644 | new file mode 100644 | ||||
index 0000000..56a921e | index 0000000..56a921e | ||||
--- /dev/null | --- /dev/null | ||||
+++ gcc/config/mips/freebsd.h | +++ gcc/config/mips/freebsd.h | ||||
@@ -0,0 +1,340 @@ | @@ -0,0 +1,347 @@ | ||||
+/* Definitions for MIPS varients running FreeBSD with ELF format | +/* Definitions for MIPS varients running FreeBSD with ELF format | ||||
+ Copyright (C) 2008 Free Software Foundation, Inc. | + Copyright (C) 2008 Free Software Foundation, Inc. | ||||
+ Continued by David O'Brien <obrien@freebsd.org> | + Continued by David O'Brien <obrien@freebsd.org> | ||||
+ | + | ||||
+This file is part of GCC. | +This file is part of GCC. | ||||
+ | + | ||||
+GCC is free software; you can redistribute it and/or modify | +GCC is free software; you can redistribute it and/or modify | ||||
+it under the terms of the GNU General Public License as published by | +it under the terms of the GNU General Public License as published by | ||||
▲ Show 20 Lines • Show All 324 Lines • ▼ Show 20 Lines | |||||
+ | + | ||||
+#ifdef IN_LIBGCC2 | +#ifdef IN_LIBGCC2 | ||||
+#undef LIBGCC2_LONG_DOUBLE_TYPE_SIZE | +#undef LIBGCC2_LONG_DOUBLE_TYPE_SIZE | ||||
+#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 64 | +#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 64 | ||||
+#endif | +#endif | ||||
+ | + | ||||
+/************************[ Debugger stuff ]*********************************/ | +/************************[ Debugger stuff ]*********************************/ | ||||
+#undef DBX_DEBUGGING_INFO | +#undef DBX_DEBUGGING_INFO | ||||
+ | |||||
+#if MIPS_ABI_DEFAULT == ABI_64 | |||||
+#undef STANDARD_STARTFILE_PREFIX_1 | |||||
+#define STANDARD_STARTFILE_PREFIX_1 "/lib/" | |||||
+#undef STANDARD_STARTFILE_PREFIX_2 | |||||
+#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/" | |||||
+#endif | |||||
kan: mips/config.h also overrides n32 to /lib32:/usr/lib32, I do not know what needs to be done for… | |||||
diff --git a/libgcc/config.host b/libgcc/config.host | diff --git a/libgcc/config.host b/libgcc/config.host | ||||
index f4a7428..5e5c33e 100644 | index f4a7428..5e5c33e 100644 | ||||
--- libgcc/config.host | --- libgcc/config.host | ||||
+++ libgcc/config.host | +++ libgcc/config.host | ||||
@@ -783,6 +783,8 @@ microblaze*-*-rtems*) | @@ -783,6 +783,8 @@ microblaze*-*-rtems*) | ||||
tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit" | tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit" | ||||
extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o" | extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o" | ||||
;; | ;; | ||||
+mips*-*-freebsd*) # FreeBSD/mips, either endian. | +mips*-*-freebsd*) # FreeBSD/mips, either endian. | ||||
+ ;; | + ;; | ||||
mips*-*-netbsd*) # NetBSD/mips, either endian. | mips*-*-netbsd*) # NetBSD/mips, either endian. | ||||
;; | ;; | ||||
mips*-*-linux*) # Linux MIPS, either endian. | mips*-*-linux*) # Linux MIPS, either endian. |
mips/config.h also overrides n32 to /lib32:/usr/lib32, I do not know what needs to be done for that