control: tags -1 +patch control: noowner -1 Done.
https://github.com/JuliaLang/openlibm/pull/152#issuecomment-394227619 Git-format patch is attached.
From feabc70eccb180dd09a2ceee27d517bbb713d7a5 Mon Sep 17 00:00:00 2001 From: Mo Zhou <cdlumin...@gmail.com> Date: Mon, 4 Jun 2018 03:50:46 +0000 Subject: [PATCH 3/3] patches: Rebase MIPS patch to upstream master --- debian/patches/add-mips-support.patch | 41 ++++++--------------------- 1 file changed, 9 insertions(+), 32 deletions(-) diff --git a/debian/patches/add-mips-support.patch b/debian/patches/add-mips-support.patch index dcfb413..b9c88ae 100644 --- a/debian/patches/add-mips-support.patch +++ b/debian/patches/add-mips-support.patch @@ -5,7 +5,7 @@ Author: Radovan Birdic <radovan.bir...@imgtec.com> Last-Update: 2017-01-24 --- a/Make.inc +++ b/Make.inc -@@ -92,6 +92,10 @@ +@@ -68,6 +68,10 @@ ifeq ($(ARCH),x86_64) override ARCH := amd64 endif @@ -16,20 +16,15 @@ Last-Update: 2017-01-24 # If CFLAGS does not contain a -O optimization flag, default to -O3 ifeq ($(findstring -O,$(CFLAGS)),) CFLAGS_add += -O3 ---- a/Makefile -+++ b/Makefile -@@ -4,9 +4,11 @@ - SUBDIRS = src $(ARCH) bsdsrc - ifneq ($(ARCH), arm) - ifneq ($(ARCH), powerpc) -+ifneq ($(ARCH), mips) - SUBDIRS += ld80 - endif - endif -+endif +@@ -120,7 +124,7 @@ SFLAGS_add += $(SFLAGS_arch) + LDFLAGS_add += $(LDFLAGS_arch) - define INC_template - TEST=test + CFLAGS_add += -std=c99 -Wall -I$(OPENLIBM_HOME) -I$(OPENLIBM_HOME)/include -I$(OPENLIBM_HOME)/$(ARCH) -I$(OPENLIBM_HOME)/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration +-ifneq ($(filter $(ARCH),i387 amd64 powerpc),) ++ifneq ($(filter $(ARCH),i387 amd64 powerpc mips),) + CFLAGS_add += -I$(OPENLIBM_HOME)/ld80 + else + ifneq ($(filter $(ARCH),aarch64),) --- a/include/openlibm_fenv.h +++ b/include/openlibm_fenv.h @@ -10,6 +10,8 @@ @@ -395,24 +390,6 @@ Last-Update: 2017-01-24 +extern inline int fedisableexcept(int __mask); +extern inline int fegetexcept(void); + ---- a/src/Make.files -+++ b/src/Make.files -@@ -38,6 +38,7 @@ - - ifneq ($(ARCH), arm) - ifneq ($(ARCH), powerpc) -+ifneq ($(ARCH), mips) - # C99 long double functions - $(CUR_SRCS) += s_copysignl.c s_fabsl.c s_llrintl.c s_lrintl.c s_modfl.c - -@@ -58,6 +59,7 @@ - s_clogl.c s_ctanhl.c s_ccosl.c s_cbrtl.c - endif - endif -+endif - - # C99 complex functions - $(CUR_SRCS) += s_ccosh.c s_ccoshf.c s_cexp.c s_cexpf.c \ --- a/src/fpmath.h +++ b/src/fpmath.h @@ -39,6 +39,8 @@ -- 2.17.1
signature.asc
Description: PGP signature