* [Linux-ia64] Re: libgmp3 problem on IA64
@ 2001-09-18 20:47 Eric Gillespie, Jr.
2001-09-18 21:18 ` David Mosberger
2001-09-19 21:38 ` Kevin Ryde
0 siblings, 2 replies; 3+ messages in thread
From: Eric Gillespie, Jr. @ 2001-09-18 20:47 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 839 bytes --]
Eric Gillespie, Jr. <epg@progeny.com> writes:
> For the past couple days i have been investigating an odd segfault in
> Sawfish. For some reason, some people were not seeing it, but once it
> starts, it is perfectly reproducable, even after eliminating any state
> Sawfish saves (Unix domain socket, configuration files, etc.).
Some co-workers started investigating this today, and found a patch from
Red Hat which apparently was not shared with bug-gmp. Even with the
patch gmp still fails 19 out of 21 of its tests, so i'm not sure the
patch accomplishes much. We're still investigating the issue. Anyway,
i have attached the patch (by Philipp Knirsch <pknirsch@redhat.de>).
--
Eric Gillespie, Jr. <*> epg@progeny.com
Software Developer
Progeny Linux Systems - http://progeny.com
"I don't know what a Sawfish Window Manager is."
[-- Attachment #2: gmp-3.1.1-ia64.patch --]
[-- Type: text/plain, Size: 2553 bytes --]
diff -urN gmp-3.1.1/longlong.h gmp-3.1.1.new/longlong.h
--- gmp-3.1.1/longlong.h Mon Jul 24 19:04:09 2000
+++ gmp-3.1.1.new/longlong.h Mon Feb 5 15:39:18 2001
@@ -157,14 +157,14 @@
#endif /* LONGLONG_STANDALONE */
#endif /* hppa */
-#if defined (__ia64) && W_TYPE_SIZE == 64
+#if defined (__ia64) && !defined(NO_ASM) && W_TYPE_SIZE == 64
#if defined (__GNUC__)
#define umul_ppmm(ph, pl, m0, m1) \
do { \
UDItype __m0 = (m0), __m1 = (m1); \
__asm__ ("xma.hu %0 = %1, %2, f0" \
- : "=e" (ph) \
- : "e" (m0), "e" (m1)); \
+ : "=f" (ph) \
+ : "f" (m0), "f" (m1)); \
(pl) = __m0 * __m1; \
} while (0)
#endif
diff -urN gmp-3.1.1/mpn/Makefile.am gmp-3.1.1.new/mpn/Makefile.am
--- gmp-3.1.1/mpn/Makefile.am Mon Jul 24 19:04:20 2000
+++ gmp-3.1.1.new/mpn/Makefile.am Mon Feb 5 15:43:02 2001
@@ -36,7 +36,7 @@
libmpn_la_LIBADD = $(OFILES)
libmpn_la_DEPENDENCIES = $(OFILES)
-TARG_DIST = a29k alpha arm clipper cray generic hppa i960 lisp m68k m88k \
+TARG_DIST = a29k alpha arm clipper cray generic hppa i960 ia64 lisp m68k m88k \
mips2 mips3 ns32k pa64 pa64w power powerpc32 powerpc64 pyr sh sparc32 \
sparc64 thumb vax x86 z8000 z8000x
diff -urN gmp-3.1.1/mpn/ia64/gmp-mparam.h gmp-3.1.1.new/mpn/ia64/gmp-mparam.h
--- gmp-3.1.1/mpn/ia64/gmp-mparam.h Thu Jan 1 01:00:00 1970
+++ gmp-3.1.1.new/mpn/ia64/gmp-mparam.h Mon Feb 5 15:43:37 2001
@@ -0,0 +1,27 @@
+/* gmp-mparam.h -- Compiler/machine parameter header file.
+
+Copyright (C) 1991, 1993, 1994 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+The GNU MP Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or (at your
+option) any later version.
+
+The GNU MP Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+License for more details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with the GNU MP Library; see the file COPYING.LIB. If not, write to
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+MA 02111-1307, USA. */
+
+#define BITS_PER_MP_LIMB 64
+#define BYTES_PER_MP_LIMB 8
+#define BITS_PER_LONGINT 64
+#define BITS_PER_INT 32
+#define BITS_PER_SHORTINT 16
+#define BITS_PER_CHAR 8
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Linux-ia64] Re: libgmp3 problem on IA64
2001-09-18 20:47 [Linux-ia64] Re: libgmp3 problem on IA64 Eric Gillespie, Jr.
@ 2001-09-18 21:18 ` David Mosberger
2001-09-19 21:38 ` Kevin Ryde
1 sibling, 0 replies; 3+ messages in thread
From: David Mosberger @ 2001-09-18 21:18 UTC (permalink / raw)
To: linux-ia64
>>>>> On Tue, 18 Sep 2001 15:47:29 -0500, "Eric Gillespie, Jr." <epg@progeny.com> said:
Eric> Some co-workers started investigating this today, and found a
Eric> patch from Red Hat which apparently was not shared with
Eric> bug-gmp. Even with the patch gmp still fails 19 out of 21 of
Eric> its tests, so i'm not sure the patch accomplishes much.
For what it's worth: I just tried gmp-3.1.1-4.src.rpm from the Red Hat
"roswell" beta and it passes all tests. As far as I can tell, there
are no ia64-specific patches other than the one you mentioned.
--david
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Linux-ia64] Re: libgmp3 problem on IA64
2001-09-18 20:47 [Linux-ia64] Re: libgmp3 problem on IA64 Eric Gillespie, Jr.
2001-09-18 21:18 ` David Mosberger
@ 2001-09-19 21:38 ` Kevin Ryde
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Ryde @ 2001-09-19 21:38 UTC (permalink / raw)
To: linux-ia64
"Eric Gillespie, Jr." <epg@progeny.com> writes:
>
> [2. text/plain; gmp-3.1.1-ia64.patch]...
Thanks, I think the gcc register flags changed at some point.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-19 21:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-18 20:47 [Linux-ia64] Re: libgmp3 problem on IA64 Eric Gillespie, Jr.
2001-09-18 21:18 ` David Mosberger
2001-09-19 21:38 ` Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox