summaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-20 01:20:34 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2012-09-20 01:20:34 +0000
commit07cf7615dafa0714bf2c4fc5bd37e52c16a2e9cb (patch)
tree5934c9676457a57d510172c9e44a0545dba622bb /libgcc
parentabf3cba6c0ad127ddfab9298e2d427c2e82a2721 (diff)
downloadgcc-07cf7615dafa0714bf2c4fc5bd37e52c16a2e9cb.tar.gz
libgcc/:
* config.host (hppa-*-openbsd*): New target. * config/pa/t-openbsd: New file. gcc:/ * config.gcc (hppa*-*-openbsd*): New target. * config/pa/pa-openbsd.h: New file. * config/pa/pa32-openbsd.h: New file. * config/host-openbsd.c: Update copyright year. (TRY_EXCEPT_VM_SPACE): Define for OpenBSD/hppa. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191508 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog5
-rw-r--r--libgcc/config.host3
-rw-r--r--libgcc/config/pa/t-openbsd9
3 files changed, 17 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 2045aac2803..42308dba755 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-19 Mark Kettenis <kettenis@openbsd.org>
+
+ * config.host (hppa-*-openbsd*): New target.
+ * config/pa/t-openbsd: New file.
+
2012-09-15 Georg-Johann Lay <avr@gjlay.de>
PR target/54222
diff --git a/libgcc/config.host b/libgcc/config.host
index 486b7152551..368902467fb 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -499,6 +499,9 @@ hppa[12]*-*-hpux11*)
extra_parts="libgcc_stub.a"
md_unwind_header=pa/hpux-unwind.h
;;
+hppa*-*-openbsd*)
+ tmake_file="$tmake_file pa/t-openbsd"
+ ;;
i[34567]86-*-darwin*)
tmake_file="$tmake_file i386/t-crtpc i386/t-crtfm"
tm_file="$tm_file i386/darwin-lib.h"
diff --git a/libgcc/config/pa/t-openbsd b/libgcc/config/pa/t-openbsd
new file mode 100644
index 00000000000..8b99068ce42
--- /dev/null
+++ b/libgcc/config/pa/t-openbsd
@@ -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