home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update30.zoo / lib / diffs < prev    next >
Encoding:
Text File  |  1993-05-21  |  15.1 KB  |  616 lines

  1. ===================================================================
  2. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/Changelo,v
  3. retrieving revision 1.92
  4. diff -c -r1.92 Changelo
  5. *** 1.92    1993/03/29 03:13:26
  6. --- Changelo    1993/05/21 12:52:46
  7. ***************
  8. *** 3696,3698 ****
  9. --- 3696,3732 ----
  10.       left for a struct mem_chunk (plus a bit more). [+ roundup ++jrb ]
  11.   
  12.   ---------------------------- Patchlevel 88 ---------------------------
  13. + memcmp.c:: andreas
  14. +     should compare with unsigned char
  15. + strr?chr.c:: andreas
  16. +     should not depend on signedness
  17. + memccpy.c and memcmp.c:: andreas
  18. +     simplified
  19. + math-68881.h:: ++jrb
  20. +     sync up with gnu version.
  21. + math.h:: ++jrb
  22. +     change all #ifdef _M68881 to
  23. +      #if defined(_M68881) ||  defined(__M6881__)
  24. +     __M68881__ gets automatically defined when gcc -m68881
  25. + doprnt.c:: michal
  26. +     Still, so far I found two bugs in floating point support.  One
  27. +     was introduced by Howard when he tried to catch garbled results from
  28. +     floating point operations.  He caught in the process also negative
  29. +     zero and that was part of the reason why Scott got NaN.
  30. +     [in the part that check for overflows]
  31. + _divdf3.cpp:: michal
  32. +     The other part was a wrong branch in a division routine which
  33. +     was giving a negative zero as a result of a division 0.0/1.0.
  34. + _divdf3.cpp, _divsf3.cpp:: michal, olaff
  35. +     Fixed sign for retinf, and retzero.
  36. + ---------------------------- Patchlevel 89 ---------------------------
  37. ===================================================================
  38. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/Makefile,v
  39. retrieving revision 1.17
  40. diff -c -r1.17 Makefile
  41. *** 1.17    1992/10/09 20:32:44
  42. --- Makefile    1993/05/21 12:52:49
  43. ***************
  44. *** 70,76 ****
  45.   endif
  46.   
  47.   ifneq (,$(findstring 68020,$(TARGET)))
  48. ! CC := $(CC) -m68020
  49.   endif
  50.   
  51.   ifneq (,$(findstring baserel,$(TARGET)))
  52. --- 70,76 ----
  53.   endif
  54.   
  55.   ifneq (,$(findstring 68020,$(TARGET)))
  56. ! CC := $(CC) -m68020 -m68881
  57.   endif
  58.   
  59.   ifneq (,$(findstring baserel,$(TARGET)))
  60. ***************
  61. *** 125,130 ****
  62. --- 125,131 ----
  63.   
  64.   #all: lshort llong lgshort lglong
  65.   top: lshort llong
  66. + #top: l020short l020long l020bshort l020blong
  67.   
  68.   lshort:
  69.       $(MAKE) clean
  70. ***************
  71. *** 132,138 ****
  72.   
  73.   llong:
  74.       $(MAKE) clean
  75. !     $(MAKE) install TARGET=long-int
  76.   
  77.   lgshort:
  78.       $(MAKE) clean
  79. --- 133,139 ----
  80.   
  81.   llong:
  82.       $(MAKE) clean
  83. !     $(MAKE) install TARGET="long-int"
  84.   
  85.   lgshort:
  86.       $(MAKE) clean
  87. ***************
  88. *** 144,154 ****
  89.   
  90.   l020short:
  91.       $(MAKE) clean
  92. !     $(MAKE) install020 TARGET=68020
  93.   
  94.   l020long:
  95.       $(MAKE) clean
  96. !     $(MAKE) install020 TARGET="68020 long-int"
  97.   
  98.   lbshort:
  99.       $(MAKE) clean
  100. --- 145,157 ----
  101.   
  102.   l020short:
  103.       $(MAKE) clean
  104. !     $(MAKE) install TARGET=68020
  105. ! #    $(MAKE) install020 TARGET=68020
  106.   
  107.   l020long:
  108.       $(MAKE) clean
  109. !     $(MAKE) install TARGET="68020 long-int"
  110. ! #    $(MAKE) install020 TARGET="68020 long-int"
  111.   
  112.   lbshort:
  113.       $(MAKE) clean
  114. ***************
  115. *** 158,163 ****
  116. --- 161,174 ----
  117.       $(MAKE) clean
  118.       $(MAKE) install TARGET="long-int baserel"
  119.   
  120. + l020bshort:
  121. +     $(MAKE) clean
  122. +     $(MAKE) install TARGET="68020 baserel"
  123. + l020blong:
  124. +     $(MAKE) clean
  125. +     $(MAKE) install TARGET="68020 long-int baserel"
  126.   realclean:
  127.       rm -f *.o *.olb
  128.       rm -f core report
  129. ===================================================================
  130. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/PatchLev.h,v
  131. retrieving revision 1.64
  132. diff -c -r1.64 PatchLev.h
  133. *** 1.64    1993/03/29 03:13:29
  134. --- PatchLev.h    1993/05/21 12:52:51
  135. ***************
  136. *** 1,5 ****
  137.   
  138. ! #define    PatchLevel "88"
  139.   
  140.   /*
  141.    *
  142. --- 1,5 ----
  143.   
  144. ! #define    PatchLevel "89"
  145.   
  146.   /*
  147.    *
  148. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/mincl,v
  149. retrieving revision 1.26
  150. diff -c -r1.26 mincl
  151. *** 1.26    1993/03/16 22:09:05
  152. --- mincl    1993/05/21 12:52:54
  153. ***************
  154. *** 5,23 ****
  155.       _muldf3.o _mulsf3.o _mulsi3.o _negdf2.o _negsf2.o _normdf.o _normsf.o \
  156.       _truncdf.o _udivmod.o _umulsi3.o _fixsfsi.o _fltsisf.o _isnan.o
  157.   
  158. - #GLIB2 = gnulib2.o
  159. - #GLIB2 = _adddi3.o _subdi3.o _muldi3.o _divdi3.o _moddi3.o _udivdi3.o \
  160. - #        _umoddi3.o _negdi2.o _anddi3.o _iordi3.o _xordi3.o _lshrdi3.o \
  161. - #        _lshldi3.o _ashldi3.o _ashrdi3.o _one_cmpldi2.o _bdiv.o _cmpdi2.o \
  162. - #        _ucmpdi2.o _fixunsdfdi.o _fixdfdi.o _floatdidf.o \
  163. - #    _fxussfsi.o _gccbcmp.o
  164.   GLIB2 = _muldi3.o _divdi3.o _moddi3.o _udivdi3.o _umoddi3.o _negdi2.o \
  165.       _lshrdi3.o _lshldi3.o _ashldi3.o _ashrdi3.o _udivmoddi4.o _cmpdi2.o \
  166.       _ucmpdi2.o _floatdidf.o _floatdisf.o _fixunsdfsi.o _fixunssfsi.o \
  167.       _fixunsdfdi.o _fixdfdi.o _fixunssfdi.o _fixsfdi.o _builtin_new.o \
  168.       _caps_New.o _builtin_del.o _trampoline.o __main.o _ctor_list.o \
  169. !     _dtor_list.o
  170.   
  171.   GCC=     $(GLIB1) $(GLIB2) \
  172.       ldexp.o frexp.o modf.o alloca.o setjmp.o osbind.o\
  173. --- 5,16 ----
  174.       _muldf3.o _mulsf3.o _mulsi3.o _negdf2.o _negsf2.o _normdf.o _normsf.o \
  175.       _truncdf.o _udivmod.o _umulsi3.o _fixsfsi.o _fltsisf.o _isnan.o
  176.   
  177.   GLIB2 = _muldi3.o _divdi3.o _moddi3.o _udivdi3.o _umoddi3.o _negdi2.o \
  178.       _lshrdi3.o _lshldi3.o _ashldi3.o _ashrdi3.o _udivmoddi4.o _cmpdi2.o \
  179.       _ucmpdi2.o _floatdidf.o _floatdisf.o _fixunsdfsi.o _fixunssfsi.o \
  180.       _fixunsdfdi.o _fixdfdi.o _fixunssfdi.o _fixsfdi.o _builtin_new.o \
  181.       _caps_New.o _builtin_del.o _trampoline.o __main.o _ctor_list.o \
  182. !     _dtor_list.o _ffsdi2.o
  183.   
  184.   GCC=     $(GLIB1) $(GLIB2) \
  185.       ldexp.o frexp.o modf.o alloca.o setjmp.o osbind.o\
  186. ***************
  187. *** 116,124 ****
  188.   atof.o  : flonum.h
  189.   
  190.   #
  191. ! # gnulib2 targets
  192.   #
  193. ! # gnulib2 stuff (must be compiled with 32 bit ints)
  194.   
  195.   $(GLIB2): %.o: libgcc2.c longlong.h
  196.       $(CC) $(CLFLAGS) -DL$* -c $< -o $@
  197. --- 109,117 ----
  198.   atof.o  : flonum.h
  199.   
  200.   #
  201. ! # libgcc2 targets
  202.   #
  203. ! # libgcc2 stuff (must be compiled with 32 bit ints)
  204.   
  205.   $(GLIB2): %.o: libgcc2.c longlong.h
  206.       $(CC) $(CLFLAGS) -DL$* -c $< -o $@
  207. ***************
  208. *** 221,227 ****
  209.   bcmp.o: ../h/stddef.h ../h/compiler.h ../h/string.h ../h/assert.h
  210.   filbuf.o: ../h/stdio.h ../h/stdlib.h ../h/unistd.h ../h/memory.h lib.h
  211.   filbuf.o: ../h/time.h
  212. - gnulib2.o: ../h/string.h ../h/compiler.h ../h/stddef.h
  213.   putenv.o: ../h/stddef.h ../h/compiler.h ../h/string.h ../h/stdlib.h
  214.   sysvar.o: ../h/support.h ../h/time.h ../h/osbind.h ../h/compiler.h
  215.   sysvar.o: ../h/ostruct.h
  216. --- 214,219 ----
  217. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_divdf3.cpp,v
  218. retrieving revision 1.5
  219. diff -c -r1.5 _divdf3.cpp
  220. *** 1.5    1993/03/01 17:33:59
  221. --- _divdf3.cpp    1993/05/21 12:55:07
  222. ***************
  223. *** 46,51 ****
  224. --- 46,54 ----
  225.   |
  226.   | patched by Olaf Flebbe (flebbe@tat.physik.uni-tuebingen.de)
  227.   |
  228. + | Revision 1.2.3 olaf 4-93
  229. + |   + Fixed sign for retinf, and retzero: it is in d2.w 
  230. + |
  231.   | Revision 1.2.2 olaf 12-92
  232.   |   + added support for NaN and Infinites
  233.   |   + added support for -0
  234. ***************
  235. *** 78,84 ****
  236.   
  237.       movel    d6,d1        | d1 = v.exp
  238.       swap    d1
  239. !     eorw    d1,d2        | d2 = u.sign ^ v.sign (in bit 31)
  240.       lsrw    #4,d1
  241.       andw    #0x07ff,d1    | kill sign bit
  242.   
  243. --- 81,87 ----
  244.   
  245.       movel    d6,d1        | d1 = v.exp
  246.       swap    d1
  247. !     eorw    d1,d2        | d2 = u.sign ^ v.sign (in bit 15)
  248.       lsrw    #4,d1
  249.       andw    #0x07ff,d1    | kill sign bit
  250.   
  251. ***************
  252. *** 124,130 ****
  253.   |    Return Infinity with correct sign
  254.   |    
  255.   retinf:    clrl    d1
  256. !     tstl    d2
  257.       bpl    0f
  258.       movel    #0xfff00000,d0
  259.   return:    moveml    sp@+,d2-d7
  260. --- 127,133 ----
  261.   |    Return Infinity with correct sign
  262.   |    
  263.   retinf:    clrl    d1
  264. !     tstw    d2
  265.       bpl    0f
  266.       movel    #0xfff00000,d0
  267.   return:    moveml    sp@+,d2-d7
  268. ***************
  269. *** 143,150 ****
  270.   |
  271.   retzero:clrl    d0        | zero destination
  272.       clrl    d1
  273. !     tstl    d2
  274. !     bmi    return
  275.       bset    #31,d0
  276.       bra    return
  277.   |
  278. --- 146,153 ----
  279.   |
  280.   retzero:clrl    d0        | zero destination
  281.       clrl    d1
  282. !     tstw    d2
  283. !     bge    return
  284.       bset    #31,d0
  285.       bra    return
  286.   |
  287. ===================================================================
  288. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_divsf3.cpp,v
  289. retrieving revision 1.5
  290. diff -c -r1.5 _divsf3.cpp
  291. *** 1.5    1993/03/01 17:34:01
  292. --- _divsf3.cpp    1993/05/21 12:55:08
  293. ***************
  294. *** 45,50 ****
  295. --- 45,53 ----
  296.   | Based on a 80x86 floating point packet from comp.os.minix, written by P.Housel
  297.   | patched by Olaf Flebbe (flebbe@tat.physik.uni-tuebingen.de)
  298.   |
  299. + | Revision 1.2.3 olaf 5-93
  300. + |   + correct sign bug for retinf and retzero
  301. + |
  302.   | Revision 1.2.2 olaf 12-92
  303.   |   + added support for NaN and Infinites
  304.   |   + added support for -0
  305. ***************
  306. *** 77,83 ****
  307.   
  308.       movel    d5,d1        | d1 = v.exp
  309.       swap    d1
  310. !     eorw    d1,d2        | d2 = u.sign ^ v.sign (in bit 31)
  311.       lsrw    #7,d1
  312.       andw    #0xff,d1    | kill sign bit
  313.   
  314. --- 80,86 ----
  315.   
  316.       movel    d5,d1        | d1 = v.exp
  317.       swap    d1
  318. !     eorw    d1,d2        | d2 = u.sign ^ v.sign (in bit 15)
  319.       lsrw    #7,d1
  320.       andw    #0xff,d1    | kill sign bit
  321.   
  322. ***************
  323. *** 120,126 ****
  324.   |
  325.   |    Return Infinity with correct sign
  326.   |    
  327. ! retinf:    tstl    d2
  328.       bpl    0f
  329.       movel    #0xff800000,d0
  330.   return:    moveml    sp@+,d2-d5
  331. --- 123,129 ----
  332.   |
  333.   |    Return Infinity with correct sign
  334.   |    
  335. ! retinf:    tstw    d2
  336.       bpl    0f
  337.       movel    #0xff800000,d0
  338.   return:    moveml    sp@+,d2-d5
  339. ***************
  340. *** 137,144 ****
  341.   |    Return correct signed zero
  342.   |
  343.   retzero:clrl    d0        | zero destination
  344. !     tstl    d2
  345. !     bmi    return
  346.       bset    #31,d0
  347.       bra    return
  348.   |
  349. --- 140,147 ----
  350.   |    Return correct signed zero
  351.   |
  352.   retzero:clrl    d0        | zero destination
  353. !     tstw    d2
  354. !     bge    return
  355.       bset    #31,d0
  356.       bra    return
  357.   |
  358. ===================================================================
  359. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/doprnt.c,v
  360. retrieving revision 1.22
  361. diff -c -r1.22 doprnt.c
  362. *** 1.22    1993/03/01 17:34:24
  363. --- doprnt.c    1993/05/21 12:55:09
  364. ***************
  365. *** 365,371 ****
  366.               else
  367.                   softsign = 0;
  368.   /* hyc: check for overflows ... */
  369. !             if (((unsigned long)_dd.i[0] > INF_HI) ||
  370.                   ((unsigned long)_dd.i[0] == INF_HI &&
  371.                    (unsigned long)_dd.i[1] > INF_LO))
  372.                 {
  373. --- 365,374 ----
  374.               else
  375.                   softsign = 0;
  376.   /* hyc: check for overflows ... */
  377. !             if ((((unsigned long)_dd.i[0] > INF_HI) &&
  378. ! /* mj: check for a negative zero; it is not smaller than zero, so it
  379. !    was not negated */
  380. !                  (_dd.i[0] != 0x80000000 || _dd.i[1] != 0)) ||
  381.                   ((unsigned long)_dd.i[0] == INF_HI &&
  382.                    (unsigned long)_dd.i[1] > INF_LO))
  383.                 {
  384. ***************
  385. *** 883,889 ****
  386.   
  387.       /* get an extra slot for rounding. */
  388.       t = ++startp;
  389. ! /* jrb -- #define DBL_EPSILON 1.1107651257113995e-16 /* mjr ++ /
  390.       /*
  391.        * get integer portion of number; put into the end of the buffer; the
  392.        * .01 is added for modf(356.0 / 10, &integer) returning .59999999...
  393. --- 886,892 ----
  394.   
  395.       /* get an extra slot for rounding. */
  396.       t = ++startp;
  397. ! /* jrb -- #define DBL_EPSILON 1.1107651257113995e-16 */ /* mjr ++ */
  398.       /*
  399.        * get integer portion of number; put into the end of the buffer; the
  400.        * .01 is added for modf(356.0 / 10, &integer) returning .59999999...
  401. ===================================================================
  402. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/memccpy.c,v
  403. retrieving revision 1.6
  404. diff -c -r1.6 memccpy.c
  405. *** 1.6    1992/03/06 19:19:47
  406. --- memccpy.c    1993/05/21 12:55:11
  407. ***************
  408. *** 6,21 ****
  409.   /*
  410.    * memccpy - copy bytes up to a certain char
  411.    *
  412. -  * CHARBITS should be defined only if the compiler lacks "unsigned char".
  413. -  * It should be a mask, e.g. 0377 for an 8-bit machine.
  414.    */
  415.   
  416. - #ifndef CHARBITS
  417. - #    define    UNSCHAR(c)    ((unsigned char)(c))
  418. - #else
  419. - #    define    UNSCHAR(c)    ((c)&CHARBITS)
  420. - #endif
  421.   void *
  422.   memccpy(dst, src, ucharstop, size)
  423.   void * dst;
  424. --- 6,13 ----
  425. ***************
  426. *** 26,41 ****
  427.       register char *d;
  428.       register const char *s;
  429.       register size_t n;
  430. -     register int uc;
  431.   
  432.       if (size == 0)
  433.           return(NULL);
  434.   
  435.       s = (const char *) src;
  436.       d = (char *)dst;
  437. -     uc = UNSCHAR(ucharstop);
  438.       for (n = size; n > 0; n--)
  439. !         if (UNSCHAR(*d++ = *s++) == uc)
  440.               return(d);
  441.   
  442.       return(NULL);
  443. --- 18,31 ----
  444.       register char *d;
  445.       register const char *s;
  446.       register size_t n;
  447.   
  448.       if (size == 0)
  449.           return(NULL);
  450.   
  451.       s = (const char *) src;
  452.       d = (char *)dst;
  453.       for (n = size; n > 0; n--)
  454. !         if ((*d++ = *s++) == (char) ucharstop)
  455.               return(d);
  456.   
  457.       return(NULL);
  458. ===================================================================
  459. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/memchr.c,v
  460. retrieving revision 1.5
  461. diff -c -r1.5 memchr.c
  462. *** 1.5    1992/03/06 19:19:47
  463. --- memchr.c    1993/05/21 12:55:12
  464. ***************
  465. *** 5,21 ****
  466.   
  467.   /*
  468.    * memchr - search for a byte
  469. -  *
  470. -  * CHARBITS should be defined only if the compiler lacks "unsigned char".
  471. -  * It should be a mask, e.g. 0377 for an 8-bit machine.
  472.    */
  473.   
  474. - #ifndef CHARBITS
  475. - #    define    UNSCHAR(c)    ((unsigned char)(c))
  476. - #else
  477. - #    define    UNSCHAR(c)    ((c)&CHARBITS)
  478. - #endif
  479.   void *
  480.   memchr(s, ucharwanted, size)
  481.   const void * s;
  482. --- 5,12 ----
  483. ***************
  484. *** 24,35 ****
  485.   {
  486.       register const char *scan;
  487.       register size_t n;
  488. -     register int uc;
  489.   
  490.       scan = (const char *) s;
  491. -     uc = UNSCHAR(ucharwanted);
  492.       for (n = size; n > 0; n--)
  493. !         if (UNSCHAR(*scan) == uc)
  494.               return((void *)scan);
  495.           else
  496.               scan++;
  497. --- 15,24 ----
  498.   {
  499.       register const char *scan;
  500.       register size_t n;
  501.   
  502.       scan = (const char *) s;
  503.       for (n = size; n > 0; n--)
  504. !         if (*scan == (char) ucharwanted)
  505.               return((void *)scan);
  506.           else
  507.               scan++;
  508. ===================================================================
  509. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/memcmp.c,v
  510. retrieving revision 1.4
  511. diff -c -r1.4 memcmp.c
  512. *** 1.4    1992/03/06 19:19:47
  513. --- memcmp.c    1993/05/21 12:55:14
  514. ***************
  515. *** 5,12 ****
  516. --- 5,21 ----
  517.   
  518.   /*
  519.    * memcmp - compare bytes
  520. +  *
  521. +  * CHARBITS should be defined only if the compiler lacks "unsigned char".
  522. +  * It should be a mask, e.g. 0377 for an 8-bit machine.
  523.    */
  524.   
  525. + #ifndef CHARBITS
  526. + #    define    UNSCHAR(c)    ((unsigned char)(c))
  527. + #else
  528. + #    define    UNSCHAR(c)    ((c)&CHARBITS)
  529. + #endif
  530.   int                /* <0, == 0, >0 */
  531.   memcmp(s1, s2, size)
  532.   const void * s1;
  533. ***************
  534. *** 24,30 ****
  535.               scan1++;
  536.               scan2++;
  537.           } else
  538. !             return(*scan1 - *scan2);
  539.   
  540.       return(0);
  541.   }
  542. --- 33,39 ----
  543.               scan1++;
  544.               scan2++;
  545.           } else
  546. !             return(UNSCHAR (*scan1) - UNSCHAR (*scan2));
  547.   
  548.       return(0);
  549.   }
  550. ===================================================================
  551. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/strchr.c,v
  552. retrieving revision 1.9
  553. diff -c -r1.9 strchr.c
  554. *** 1.9    1992/09/14 14:56:40
  555. --- strchr.c    1993/05/21 12:55:15
  556. ***************
  557. *** 27,33 ****
  558.       /*
  559.        * The odd placement of the two tests is so NUL is findable.
  560.        */
  561. !     while ((c = *s++) != charwanted)
  562.           if (c == 0) return NULL;
  563.       return((char *)--s);
  564.   }
  565. --- 27,33 ----
  566.       /*
  567.        * The odd placement of the two tests is so NUL is findable.
  568.        */
  569. !     while ((c = *s++) != (char) charwanted)
  570.           if (c == 0) return NULL;
  571.       return((char *)--s);
  572.   }
  573. ===================================================================
  574. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/strrchr.c,v
  575. retrieving revision 1.10
  576. diff -c -r1.10 strrchr.c
  577. *** 1.10    1992/10/09 20:35:29
  578. --- strrchr.c    1993/05/21 12:55:17
  579. ***************
  580. *** 26,34 ****
  581.   
  582.       place = NULL;
  583.       while ((c = *s++) != 0)
  584. !         if (c == charwanted)
  585.               place = s - 1;
  586. !     if (charwanted == '\0')
  587.           return((char *)--s);
  588.       return (char *)place;
  589.   }
  590. --- 26,34 ----
  591.   
  592.       place = NULL;
  593.       while ((c = *s++) != 0)
  594. !         if (c == (char) charwanted)
  595.               place = s - 1;
  596. !     if ((char) charwanted == '\0')
  597.           return((char *)--s);
  598.       return (char *)place;
  599.   }
  600.