diff options
Diffstat (limited to 'gnu/usr.bin/cc')
-rw-r--r-- | gnu/usr.bin/cc/Makefile.tgt | 5 | ||||
-rw-r--r-- | gnu/usr.bin/cc/cc_tools/Makefile | 7 | ||||
-rw-r--r-- | gnu/usr.bin/cc/libgcc/Makefile | 9 |
3 files changed, 18 insertions, 3 deletions
diff --git a/gnu/usr.bin/cc/Makefile.tgt b/gnu/usr.bin/cc/Makefile.tgt index 71df069ab3b..8d76fa37948 100644 --- a/gnu/usr.bin/cc/Makefile.tgt +++ b/gnu/usr.bin/cc/Makefile.tgt @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/usr.bin/cc/Makefile.tgt,v 1.11.8.1 2009/04/15 03:14:26 kensmith Exp $ -# $OpenBSD: Makefile.tgt,v 1.9 2011/07/04 05:46:18 pirofti Exp $ +# $OpenBSD: Makefile.tgt,v 1.10 2011/08/04 14:46:58 kettenis Exp $ TARGET_ARCH?= ${MACHINE_ARCH} @@ -14,6 +14,9 @@ GCC_CPU= ia64 .elif ${TARGET_ARCH} == "hppa" GCC_CPU= pa TARGET_CPU_DEFAULT= MASK_PA_11 +.elif ${TARGET_ARCH} == "hppa64" +GCC_CPU= pa +TARGET_CPU_DEFAULT= MASK_PA_11|MASK_PA_20 .elif ${TARGET_ARCH} == "mips64" || ${TARGET_ARCH} == "mips64el" GCC_CPU= mips .elif ${TARGET_ARCH} == "powerpc" diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile index b4662dc08ac..7ca7db44ce6 100644 --- a/gnu/usr.bin/cc/cc_tools/Makefile +++ b/gnu/usr.bin/cc/cc_tools/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/usr.bin/cc/cc_tools/Makefile,v 1.88.8.1 2009/04/15 03:14:26 kensmith Exp $ -# $OpenBSD: Makefile,v 1.10 2011/06/25 20:56:21 miod Exp $ +# $OpenBSD: Makefile,v 1.11 2011/08/04 14:46:58 kettenis Exp $ .include <bsd.own.mk> @@ -27,6 +27,9 @@ TARGET_INC+= options.h .if ${TARGET_ARCH} == "amd64" TARGET_INC+= i386/biarch64.h .endif +.if ${TARGET_ARCH} == "hppa64" +TARGET_INC+= pa/pa64-start.h +.endif .if ${TARGET_ARCH} == "sh" TARGET_INC+= sh/little.h .endif @@ -74,6 +77,8 @@ TM_DEFINES+= TARGET_ENDIAN_DEFAULT=0 .if ${TARGET_ARCH} == "amd64" TARGET_INC+= ${GCC_CPU}/x86-64.h TARGET_INC+= ${GCC_CPU}/openbsd64.h +.elif ${TARGET_ARCH} == "hppa64" +TARGET_INC+= ${GCC_CPU}/openbsd64.h .elif ${TARGET_ARCH} == "sparc64" TARGET_INC+= ${GCC_CPU}/openbsd64.h .elif ${TARGET_ARCH} == "i386" diff --git a/gnu/usr.bin/cc/libgcc/Makefile b/gnu/usr.bin/cc/libgcc/Makefile index 73a0932af3f..722770d893d 100644 --- a/gnu/usr.bin/cc/libgcc/Makefile +++ b/gnu/usr.bin/cc/libgcc/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/lib/libgcc/Makefile,v 1.58.8.1 2009/04/15 03:14:26 kensmith Exp $ -# $OpenBSD: Makefile,v 1.17 2010/10/23 09:46:30 miod Exp $ +# $OpenBSD: Makefile,v 1.18 2011/08/04 14:46:58 kettenis Exp $ .include <bsd.own.mk> @@ -141,6 +141,13 @@ LIB1ASMSRC = pa/milli64.S LIB2FUNCS_EXTRA = fptr.c .endif +.if ${TARGET_ARCH} == "hppa64" +CFLAGS+= -fPIC -Dpa64=1 -DELF=1 +LIB1ASMFUNCS = _divI _divU _remI _remU _div_const _mulI +LIB1ASMSRC = pa/milli64.S +LIB2FUNCS_EXTRA = fptr.c +.endif + .if ${TARGET_ARCH} == "sh" CFLAGS+= -fpic LIB1ASMSRC = sh/lib1funcs.asm |