aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorMatt Thomas <matt@3am-software.com>2019-07-31 14:11:16 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2019-07-31 14:11:16 +0000
commit428642b132a4f2ce6c368398ec7f2ff307f33f8a (patch)
treeee3b652ae811af471397c011ef96a7d3826015c6 /libgcc
parent538e4cdc15fdfc06f2a54f1a92bc996ec99cb528 (diff)
downloadgcc-428642b132a4f2ce6c368398ec7f2ff307f33f8a.zip
gcc-428642b132a4f2ce6c368398ec7f2ff307f33f8a.tar.gz
gcc-428642b132a4f2ce6c368398ec7f2ff307f33f8a.tar.bz2
config.gcc (hppa*-*-netbsd*): New target.
gcc/ChangeLog: * config.gcc (hppa*-*-netbsd*): New target. * config/pa/pa-netbsd.h: New file. * config/pa/pa32-netbsd.h: New file. libgcc/ChangeLog: * config.host (hppa*-*-netbsd*): New case. * config/pa/t-netbsd: New file. Co-Authored-By: Matthew Green <mrg@eterna.com.au> Co-Authored-By: Maya Rashish <coypu@sdf.org> Co-Authored-By: Nick Hudson <nick@nthcliff.demon.co.uk> From-SVN: r273933
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog8
-rw-r--r--libgcc/config.host3
-rw-r--r--libgcc/config/pa/t-netbsd9
3 files changed, 20 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index c9aea1d..33b6fa8 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,11 @@
+2019-07-31 Matt Thomas <matt@3am-software.com>
+ Nick Hudson <nick@nthcliff.demon.co.uk>
+ Matthew Green <mrg@eterna.com.au>
+ Maya Rashish <coypu@sdf.org>
+
+ * config.host (hppa*-*-netbsd*): New case.
+ * config/pa/t-netbsd: New file.
+
2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
* config/arm/cmse.c (cmse_check_address_range): Add
diff --git a/libgcc/config.host b/libgcc/config.host
index f5ca779..503ebb6 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -634,6 +634,9 @@ hppa[12]*-*-hpux11*)
hppa*-*-openbsd*)
tmake_file="$tmake_file pa/t-openbsd"
;;
+hppa*-*-netbsd*)
+ tmake_file="$tmake_file pa/t-netbsd"
+ ;;
i[34567]86-*-darwin*)
tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
tm_file="$tm_file i386/darwin-lib.h"
diff --git a/libgcc/config/pa/t-netbsd b/libgcc/config/pa/t-netbsd
new file mode 100644
index 0000000..8b99068
--- /dev/null
+++ b/libgcc/config/pa/t-netbsd
@@ -0,0 +1,9 @@
+#Plug millicode routines into libgcc.a We want these on both native and
+#cross compiles. We use the "64-bit" routines because the "32-bit" code
+#is broken for certain corner cases.
+LIB1ASMSRC = pa/milli64.S
+LIB1ASMFUNCS = _divI _divU _remI _remU _div_const _mulI _dyncall
+
+HOST_LIBGCC2_CFLAGS += -DELF=1 -DLINUX=1
+
+LIB2ADD = $(srcdir)/config/pa/fptr.c