Louis . Granboulan on Fri, 3 Jul 1998 16:18:05 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Bug of Sun CC 4.2, UltraSparc


You need the following patch if you want to
build pari on an UltraSparc using Sun's cc
compiler (version 4.2) under Solaris.
The same version of Sun's cc works well on
other machines (SuperSparc or MicroSparc)

Here are the resulting MACHINES line :
UltraSPARC2i 270MHz    Solaris-2.6   cc  X11 dl2   11228   11566   2.0.9    LG
UltraSPARC   167MHz    Solaris-2.5   cc  X11 dl2   16241   17048   2.0.9    LG

*** pari-2.0.9.alpha/src/basemath/polarit1.c.orig	Tue Jun 16 20:36:51 1998
--- pari-2.0.9.alpha/src/basemath/polarit1.c	Fri Jul  3 15:33:54 1998
***************
*** 712,719 ****
              }
            }
          }
!         j=nbfact+d;
! 	for (; nbfact<j; nbfact++) ex[nbfact]=e*k;
        }
      }
      j=(lgef(f2)-3)/p+3; if (j==3) break;
--- 712,719 ----
              }
            }
          }
!         for (j=0; j<d; j++) ex[nbfact+j]=e*k;
!         nbfact += d;
        }
      }
      j=(lgef(f2)-3)/p+3; if (j==3) break;