Lines 290-296
Link Here
|
290 |
+#define UINTPTR_TYPE (LONG_TYPE_SIZE == 64 ? UINT64_TYPE : UINT32_TYPE) |
290 |
+#define UINTPTR_TYPE (LONG_TYPE_SIZE == 64 ? UINT64_TYPE : UINT32_TYPE) |
291 |
--- /dev/null |
291 |
--- /dev/null |
292 |
+++ gcc/config/dragonfly.h |
292 |
+++ gcc/config/dragonfly.h |
293 |
@@ -0,0 +1,141 @@ |
293 |
@@ -0,0 +1,139 @@ |
294 |
+/* Base configuration file for all DragonFly targets. |
294 |
+/* Base configuration file for all DragonFly targets. |
295 |
+ Copyright (C) 1999, 2000, 2001, 2007, 2008 Free Software Foundation, Inc. |
295 |
+ Copyright (C) 1999, 2000, 2001, 2007, 2008 Free Software Foundation, Inc. |
296 |
+ Copyright (C) 2010-2012 John R. Marino <www.dragonlace.net> |
296 |
+ Copyright (C) 2010-2012 John R. Marino <www.dragonlace.net> |
Lines 388-399
Link Here
|
388 |
+#undef LINK_SPEC |
388 |
+#undef LINK_SPEC |
389 |
+#define LINK_SPEC DFBSD_LINK_SPEC |
389 |
+#define LINK_SPEC DFBSD_LINK_SPEC |
390 |
+ |
390 |
+ |
391 |
+#define DFBSD_DYNAMIC_LINKER \ |
391 |
+#define DFBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.2" |
392 |
+ "/usr/libexec/ld-elf.so.2" |
|
|
393 |
+ |
392 |
+ |
394 |
+#if defined(HAVE_LD_EH_FRAME_HDR) |
393 |
+#if defined(HAVE_LD_EH_FRAME_HDR) |
395 |
+#define LINK_EH_SPEC \ |
394 |
+#define LINK_EH_SPEC "--eh-frame-hdr" |
396 |
+ "%{!static:--eh-frame-hdr}" |
|
|
397 |
+#endif |
395 |
+#endif |
398 |
+ |
396 |
+ |
399 |
+/* Use --as-needed -lgcc_s for eh support. */ |
397 |
+/* Use --as-needed -lgcc_s for eh support. */ |
Lines 1157-1167
Link Here
|
1157 |
|
1155 |
|
1158 |
/* Put all *tf routines in libgcc. */ |
1156 |
/* Put all *tf routines in libgcc. */ |
1159 |
#undef LIBGCC2_HAS_TF_MODE |
1157 |
#undef LIBGCC2_HAS_TF_MODE |
1160 |
@@ -147,3 +148,39 @@ |
1158 |
@@ -148,5 +149,38 @@ |
1161 |
#if FBSD_MAJOR >= 6 |
|
|
1162 |
#define SUBTARGET32_DEFAULT_CPU "i486" |
1159 |
#define SUBTARGET32_DEFAULT_CPU "i486" |
1163 |
#endif |
1160 |
#endif |
1164 |
+ |
1161 |
|
|
|
1162 |
-#define TARGET_ASM_FILE_END file_end_indicate_exec_stack |
1165 |
+/* Define location of OS-specific unwind support configuration. */ |
1163 |
+/* Define location of OS-specific unwind support configuration. */ |
1166 |
+#define MD_UNWIND_SUPPORT "config/i386/freebsd-unwind.h" |
1164 |
+#define MD_UNWIND_SUPPORT "config/i386/freebsd-unwind.h" |
1167 |
+ |
1165 |
+ |
Lines 1196-1202
Link Here
|
1196 |
+ (void) mprotect (page, ends - page, perms); \ |
1194 |
+ (void) mprotect (page, ends - page, perms); \ |
1197 |
+} |
1195 |
+} |
1198 |
+ |
1196 |
+ |
1199 |
+ |
1197 |
|
1200 |
--- gcc/config/i386/netbsd-elf.h.orig |
1198 |
--- gcc/config/i386/netbsd-elf.h.orig |
1201 |
+++ gcc/config/i386/netbsd-elf.h |
1199 |
+++ gcc/config/i386/netbsd-elf.h |
1202 |
@@ -2,6 +2,7 @@ |
1200 |
@@ -2,6 +2,7 @@ |
Lines 1787-1793
Link Here
|
1787 |
|
1785 |
|
1788 |
#This file is part of GCC. |
1786 |
#This file is part of GCC. |
1789 |
|
1787 |
|
1790 |
@@ -166,6 +167,8 @@ |
1788 |
@@ -157,6 +158,8 @@ |
1791 |
;; |
1789 |
;; |
1792 |
*-*-openbsd*) |
1790 |
*-*-openbsd*) |
1793 |
;; |
1791 |
;; |
Lines 1796-1802
Link Here
|
1796 |
*-*-rtems*) |
1794 |
*-*-rtems*) |
1797 |
;; |
1795 |
;; |
1798 |
*-*-vxworks*) |
1796 |
*-*-vxworks*) |
1799 |
@@ -287,6 +290,14 @@ |
1797 |
@@ -278,6 +281,14 @@ |
1800 |
x86_64-*-freebsd*) |
1798 |
x86_64-*-freebsd*) |
1801 |
tmake_file="${tmake_file} i386/t-freebsd" |
1799 |
tmake_file="${tmake_file} i386/t-freebsd" |
1802 |
;; |
1800 |
;; |
Lines 1811-1817
Link Here
|
1811 |
i[34567]86-*-netbsdelf*) |
1809 |
i[34567]86-*-netbsdelf*) |
1812 |
;; |
1810 |
;; |
1813 |
i[34567]86-*-netbsd*) |
1811 |
i[34567]86-*-netbsd*) |
1814 |
@@ -297,6 +308,8 @@ |
1812 |
@@ -288,6 +299,8 @@ |
1815 |
;; |
1813 |
;; |
1816 |
i[34567]86-*-openbsd*) |
1814 |
i[34567]86-*-openbsd*) |
1817 |
;; |
1815 |
;; |
Lines 1820-1826
Link Here
|
1820 |
i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu*) |
1818 |
i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu*) |
1821 |
extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
1819 |
extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o" |
1822 |
tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" |
1820 |
tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm" |
1823 |
@@ -628,6 +641,9 @@ |
1821 |
@@ -619,6 +632,9 @@ |
1824 |
tmake_file="${tmake_file} t-softfp i386/${host_address}/t-fprules-softfp" |
1822 |
tmake_file="${tmake_file} t-softfp i386/${host_address}/t-fprules-softfp" |
1825 |
fi |
1823 |
fi |
1826 |
;; |
1824 |
;; |
Lines 1837-1843
Link Here
|
1837 |
+SHLIB_MAPFILES += $(srcdir)/config/i386/libgcc-bsd.ver |
1835 |
+SHLIB_MAPFILES += $(srcdir)/config/i386/libgcc-bsd.ver |
1838 |
--- gcc/configure.orig |
1836 |
--- gcc/configure.orig |
1839 |
+++ gcc/configure |
1837 |
+++ gcc/configure |
1840 |
@@ -25843,6 +25843,20 @@ |
1838 |
@@ -25833,6 +25833,20 @@ |
1841 |
gcc_cv_target_dl_iterate_phdr=no |
1839 |
gcc_cv_target_dl_iterate_phdr=no |
1842 |
fi |
1840 |
fi |
1843 |
;; |
1841 |
;; |
Lines 1890-1898
Link Here
|
1890 |
|
1888 |
|
1891 |
$(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs |
1889 |
$(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs |
1892 |
-rm -f $@ |
1890 |
-rm -f $@ |
|
|
1891 |
--- libiberty/getpagesize.c.orig |
1892 |
+++ libiberty/getpagesize.c |
1893 |
@@ -20,6 +20,7 @@ |
1894 |
|
1895 |
*/ |
1896 |
|
1897 |
+#ifndef __ANDROID__ |
1898 |
#ifndef VMS |
1899 |
|
1900 |
#include "config.h" |
1901 |
@@ -88,3 +89,4 @@ |
1902 |
} |
1903 |
|
1904 |
#endif /* VMS */ |
1905 |
+#endif /* __ANDROID__ */ |
1906 |
--- libiberty/setproctitle.c.orig |
1907 |
+++ libiberty/setproctitle.c |
1908 |
@@ -40,9 +40,11 @@ |
1909 |
void |
1910 |
setproctitle (const char *name ATTRIBUTE_UNUSED, ...) |
1911 |
{ |
1912 |
+#ifndef __ANDROID__ |
1913 |
#ifdef PR_SET_NAME |
1914 |
/* On Linux this sets the top visible "comm", but not necessarily |
1915 |
the name visible in ps. */ |
1916 |
prctl (PR_SET_NAME, name); |
1917 |
#endif |
1918 |
+#endif |
1919 |
} |
1893 |
--- configure.orig |
1920 |
--- configure.orig |
1894 |
+++ configure |
1921 |
+++ configure |
1895 |
@@ -14200,7 +14200,7 @@ |
1922 |
@@ -14196,7 +14196,7 @@ |
1896 |
_ACEOF |
1923 |
_ACEOF |
1897 |
if ac_fn_c_try_compile "$LINENO"; then : |
1924 |
if ac_fn_c_try_compile "$LINENO"; then : |
1898 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
1925 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |