From 7cfedc199337729ecb9d71f508bad478c8b8bbd2c7b8049d2bdbb1c3b4bdff70 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 31 May 2017 18:43:36 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-winpthreads?expand=0&rev=23 --- gcc7.patch | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 gcc7.patch diff --git a/gcc7.patch b/gcc7.patch deleted file mode 100644 index 3e56782..0000000 --- a/gcc7.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- winpthreads/src/libgcc/dll_math.c 2013-04-10 20:11:34.000000000 +0200 -+++ winpthreads/src/libgcc/dll_math.c 2017-05-31 13:02:25.869883546 +0200 -@@ -120,6 +120,7 @@ - u_quad_t __udivdi3(u_quad_t a, u_quad_t b); - u_quad_t __umoddi3(u_quad_t a, u_quad_t b); - int __ucmpdi2(u_quad_t a, u_quad_t b); -+quad_t __divmoddi4(quad_t a, quad_t b, quad_t *rem); - - #endif /* !_LIBKERN_QUAD_H_ */ - -@@ -546,6 +547,31 @@ - (void)__qdivrem(a, b, &r); - return (r); - } -+ -+/* -+ * Divide two signed quads. -+ * This function is new in GCC 7. -+ */ -+quad_t -+__divmoddi4(a, b, rem) -+ quad_t a, b, *rem; -+{ -+ u_quad_t ua, ub, uq, ur; -+ int negq, negr; -+ -+ if (a < 0) -+ ua = -(u_quad_t)a, negq = 1, negr = 1; -+ else -+ ua = a, negq = 0, negr = 0; -+ if (b < 0) -+ ub = -(u_quad_t)b, negq ^= 1; -+ else -+ ub = b; -+ uq = __qdivrem(ua, ub, &ur); -+ if (rem) -+ *rem = (negr ? -ur : ur); -+ return (negq ? -uq : uq); -+} - #else - static int __attribute__((unused)) dummy; - #endif /*deined (_X86_) && !defined (__x86_64__)*/