Subject: Re: port-m68k/7152: egcs on mac68k: Internal compiler error...
To: None <,,>
From: Frederick Bruckman <>
List: tech-pkg
Date: 03/29/1999 20:32:39
Aha! There's exactly one bit of code that chokes egcs, and it happens
to be wrapped with an interesting comment. Perhaps this will be a
useful stress test for the compiler. In the meantime, the old code was
left in place. So the following permits ssleay to build:

fredb-> cat /usr/pkgsrc/security/ssleay/patches/patch-ak

--- crypto/bn/bn_div.c.orig     Thu Apr  9 06:59:28 1998
+++ crypto/bn/bn_div.c  Sun Mar 28 17:04:28 1999
@@ -61,7 +61,7 @@
 #include "bn_lcl.h"

 /* The old slow way */
-#if 0
+#if defined (__NetBSD__) && (__GNUC_MINOR__ == 91)
 int BN_div(dv, rem, m, d,ctx)
 BIGNUM *dv;
 BIGNUM *rem;