make-prime-list crashes on hppa1.1-hp-hpux10.20.  This probably
will occur on any hppa-hpux system.

Attached is a hack to work around the problem.

Dave
-- 
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
--- make-prime-list.c.orig      Tue Oct 23 10:14:12 2012
+++ make-prime-list.c   Sat Oct 27 16:10:30 2012
@@ -84,10 +84,17 @@
       unsigned int d8 = i + 8 < nprimes ? primes[i + 8].p - primes[i].p : 0xff;
       if (255 < d8) /* this happens at 668221 */
         abort ();
+#ifdef __hppa
+      printf ("P (%2u, %3u, 0x%016llx%s, 0x%016llx%s) /* %d */\n",
+              primes[i].p - p, d8,
+              primes[i].pinv, suffix,
+              primes[i].lim, suffix, primes[i].p);
+#else
       printf ("P (%2u, %3u, 0x%0*jx%s, 0x%0*jx%s) /* %d */\n",
               primes[i].p - p, d8,
               SZ, primes[i].pinv, suffix,
               SZ, primes[i].lim, suffix, primes[i].p);
+#endif
       p = primes[i].p;
     }
 

Reply via email to