home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Atari / Gnu / gassrc04.zoo / gas-diff < prev    next >
Text File  |  1991-02-17  |  8KB  |  326 lines

  1. diff -c -r gas-1.38/app.c cross-gas-1.38/app.c
  2. *** gas-1.38/app.c    Thu Oct 11 12:26:17 1990
  3. --- cross-gas-1.38/app.c    Mon Jan 21 18:52:45 1991
  4. ***************
  5. *** 74,80 ****
  6. --- 74,86 ----
  7.   int
  8.   scrub_from_file()
  9.   {
  10. + #ifdef atarist
  11. +     int c;
  12. +     if((c = getc(scrub_file)) == '\r') c = getc(scrub_file);
  13. +     return c;
  14. + #else
  15.       return getc(scrub_file);
  16. + #endif
  17.   }
  18.   
  19.   void
  20. diff -c -r gas-1.38/as.c cross-gas-1.38/as.c
  21. *** gas-1.38/as.c    Thu Oct 11 12:26:17 1990
  22. --- cross-gas-1.38/as.c    Mon Jan 21 18:52:45 1991
  23. ***************
  24. *** 81,86 ****
  25. --- 81,89 ----
  26.           if(signal(sig[a], SIG_IGN) != SIG_IGN)
  27.               signal(sig[a], got_sig);
  28.   
  29. + #ifdef atarist
  30. +     _binmode(1);
  31. + #endif
  32.       myname=argv[0];
  33.       bzero (flagseen, sizeof(flagseen)); /* aint seen nothing yet */
  34.       out_file_name    = "a.out";    /* default .o file */
  35. diff -c -r gas-1.38/expr.c cross-gas-1.38/expr.c
  36. *** gas-1.38/expr.c    Fri Jan  4 13:13:00 1991
  37. --- cross-gas-1.38/expr.c    Tue Feb  5 18:48:54 1991
  38. ***************
  39. *** 527,535 ****
  40.          * It is faster to re-cancel them to NULL
  41.          * than to check for this special case.
  42.          */
  43. !       if (expressionP -> X_subtract_symbol == expressionP -> X_add_symbol
  44. !           || (   expressionP->X_subtract_symbol->sy_frag==expressionP->X_add_symbol->sy_frag
  45. !           && expressionP->X_subtract_symbol->sy_value==expressionP->X_add_symbol->sy_value))
  46.       {
  47.         expressionP -> X_subtract_symbol    = NULL;
  48.         expressionP -> X_add_symbol        = NULL;
  49. --- 527,533 ----
  50.          * It is faster to re-cancel them to NULL
  51.          * than to check for this special case.
  52.          */
  53. !       if (expressionP -> X_subtract_symbol == expressionP -> X_add_symbol)
  54.       {
  55.         expressionP -> X_subtract_symbol    = NULL;
  56.         expressionP -> X_add_symbol        = NULL;
  57. diff -c -r gas-1.38/input-file.c cross-gas-1.38/input-file.c
  58. *** gas-1.38/input-file.c    Fri Jan  4 13:12:57 1991
  59. --- cross-gas-1.38/input-file.c    Mon Jan 21 18:52:55 1991
  60. ***************
  61. *** 59,65 ****
  62. --- 59,100 ----
  63.   
  64.   #define BUFFER_SIZE (32 * 1024)
  65.   
  66. + #ifdef atarist
  67. + /* a little ditty here to do fread, filtering out '\r'. */
  68. + int filtering_fread(where, how_big, how_many, f)
  69. + char * where;
  70. + int how_big;
  71. + int how_many;
  72. + FILE * f;
  73. + {
  74. +   int i, j, c;
  75. +   for (i = 0 ; i < how_many ; )
  76. +     {
  77. +     for (j = 0 ; j < how_big ; )
  78. +         {
  79. +         c = fgetc(f);
  80. +         if (c == EOF)
  81. +             goto done;
  82. +         if (c != '\r')
  83. +             {
  84. +             *where++ = c;
  85. +             j++;
  86. +             }
  87. +         }
  88. +     i++;
  89. +     }
  90. + done:
  91. +   return(i);
  92. + }
  93. +  
  94. + #else
  95. +  
  96.   static char in_buf[BUFFER_SIZE];
  97. +   
  98. + #endif
  99. +  
  100.   
  101.   /*
  102.    * We use static data: the data area is not sharable.
  103. ***************
  104. *** 195,206 ****
  105.           as_perror ("Can't open %s for reading", file_name);
  106.           return;
  107.       }
  108. ! #ifndef VMS
  109.       setbuffer(f_in,in_buf,BUFFER_SIZE);
  110.   #endif /* VMS */
  111.       c=getc(f_in);
  112.       if(c=='#') {    /* Begins with comment, may not want to preprocess */
  113.           c=getc(f_in);
  114.           if(c=='N') {
  115.               fgets(buf,80,f_in);
  116.               if(!strcmp(buf,"O_APP\n"))
  117. --- 230,247 ----
  118.           as_perror ("Can't open %s for reading", file_name);
  119.           return;
  120.       }
  121. ! #if (!(defined(VMS) || defined(atarist) || defined(atariminix)))
  122.       setbuffer(f_in,in_buf,BUFFER_SIZE);
  123.   #endif /* VMS */
  124.       c=getc(f_in);
  125. + #ifdef atarist
  126. +     if(c == '\r') c = getc(f_in);
  127. + #endif
  128.       if(c=='#') {    /* Begins with comment, may not want to preprocess */
  129.           c=getc(f_in);
  130. + #ifdef atarist
  131. +         if(c == '\r') c = getc(f_in);
  132. + #endif
  133.           if(c=='N') {
  134.               fgets(buf,80,f_in);
  135.               if(!strcmp(buf,"O_APP\n"))
  136. ***************
  137. *** 274,280 ****
  138.       }
  139.       size=BUFFER_SIZE-n;
  140.     } else
  141. !     size= fread(where,sizeof(char),BUFFER_SIZE,f_in);
  142.     if (size < 0)
  143.       {
  144.         as_perror ("Can't read from %s", file_name);
  145. --- 315,325 ----
  146.       }
  147.       size=BUFFER_SIZE-n;
  148.     } else
  149. ! #ifdef atarist
  150. !   size= filtering_fread(where,sizeof(char),BUFFER_SIZE,f_in);
  151. ! #else
  152. !   size= fread(where,sizeof(char),BUFFER_SIZE,f_in);
  153. ! #endif
  154.     if (size < 0)
  155.       {
  156.         as_perror ("Can't read from %s", file_name);
  157. diff -c -r gas-1.38/input-scrub.c cross-gas-1.38/input-scrub.c
  158. *** gas-1.38/input-scrub.c    Fri Jan  4 13:12:58 1991
  159. --- cross-gas-1.38/input-scrub.c    Mon Jan 21 18:52:56 1991
  160. ***************
  161. *** 54,60 ****
  162. --- 54,64 ----
  163.   static char *    buffer_start;    /* -> 1st char of full buffer area. */
  164.   static char *    partial_where;    /* -> after last full line in buffer. */
  165.   static int    partial_size;    /* >=0. Number of chars in partial line in buffer. */
  166. + #if (defined(atarist) || defined(atariminix))
  167. + static char    save_source [2];    /* odd num fucks alignment? */
  168. + #else
  169.   static char    save_source [AFTER_SIZE];
  170. + #endif
  171.                   /* Because we need AFTER_STRING just after last */
  172.                   /* full line, it clobbers 1st part of partial */
  173.                   /* line. So we preserve 1st part of partial */
  174. diff -c -r gas-1.38/m68k-opcode.h cross-gas-1.38/m68k-opcode.h
  175. *** gas-1.38/m68k-opcode.h    Wed Aug  1 14:49:19 1990
  176. --- cross-gas-1.38/m68k-opcode.h    Mon Jan 21 18:52:58 1991
  177. ***************
  178. *** 628,633 ****
  179. --- 628,634 ----
  180.   {"trapvc",    one(0054374),        one(0177777),        ""},
  181.   {"trapvs",    one(0054774),        one(0177777),        ""},
  182.   
  183. + #if (!(CROSSATARI || atarist || atariminix))
  184.   {"trapcc.w",    one(0052372),        one(0177777),        ""},
  185.   {"trapcs.w",    one(0052772),        one(0177777),        ""},
  186.   {"trapeq.w",    one(0053772),        one(0177777),        ""},
  187. ***************
  188. *** 662,667 ****
  189. --- 663,670 ----
  190.   {"trapvc.l",    one(0054373),        one(0177777),        ""},
  191.   {"trapvs.l",    one(0054773),        one(0177777),        ""},
  192.   
  193. + #endif /* !(CROSSATARI || atarist || atariminix) */
  194.   {"trapv",    one(0047166),        one(0177777),        ""},
  195.   
  196.   {"tstb",    one(0045000),        one(0177700),        ";b"},
  197. ***************
  198. *** 1385,1391 ****
  199. --- 1388,1396 ----
  200.   
  201.   /* Alternate mnemonics for SUN */
  202.   
  203. + #if (!(CROSSATARI || atarist || atariminix))
  204.   {"jbsr",    one(0060400),        one(0177400),        "Bg"},
  205. + #endif
  206.   {"jbsr",    one(0047200),        one(0177700),        "!s"},
  207.   {"jra",        one(0060000),        one(0177400),        "Bg"},
  208.   {"jra",        one(0047300),        one(0177700),        "!s"},
  209. diff -c -r gas-1.38/m68k.c cross-gas-1.38/m68k.c
  210. *** gas-1.38/m68k.c    Tue Dec  4 15:50:00 1990
  211. --- cross-gas-1.38/m68k.c    Wed Feb  6 09:52:38 1991
  212. ***************
  213. *** 1258,1265 ****
  214.                       long t;
  215.   
  216.                       t=get_num(opP->con1,80);
  217. !                     if(t<1 || t>8 || isvar(opP->con1))
  218. !                         losing++;
  219.                   }
  220.                   break;
  221.   
  222. --- 1258,1271 ----
  223.                       long t;
  224.   
  225.                       t=get_num(opP->con1,80);
  226. !                     if (s[1]!='s') {
  227. !                         if(t<1 || t>8 || isvar(opP->con1))
  228. !                             losing++;
  229. !                     }
  230. !                     else {
  231. !                         if(t<0 || t>7 || isvar(opP->con1))
  232. !                             losing++;
  233. !                     }
  234.                   }
  235.                   break;
  236.   
  237. ***************
  238. *** 1474,1480 ****
  239.                   if(   !issword(nextword)
  240.                      || (   isvar(opP->con1)
  241.                          && (  (   opP->con1->e_siz==0
  242. !                           && flagseen['l']==0)
  243.                          || opP->con1->e_siz==3))) {
  244.   
  245.                       if(opP->reg==PC)
  246. --- 1480,1486 ----
  247.                   if(   !issword(nextword)
  248.                      || (   isvar(opP->con1)
  249.                          && (  (   opP->con1->e_siz==0
  250. !                           && flagseen['l']!=0)
  251.                          || opP->con1->e_siz==3))) {
  252.   
  253.                       if(opP->reg==PC)
  254. ***************
  255. *** 1489,1495 ****
  256.                               break;
  257.                           } else {
  258.                               addword(0x0170);
  259. !                             add_fix('l',opP->con1,1);
  260.                           }
  261.                       } else
  262.                           addword(0x0170);
  263. --- 1495,1501 ----
  264.                               break;
  265.                           } else {
  266.                               addword(0x0170);
  267. !                             add_fix('l',opP->con1,0);
  268.                           }
  269.                       } else
  270.                           addword(0x0170);
  271. ***************
  272. *** 1976,1984 ****
  273.               break;
  274.   
  275.           case 'Q':
  276. !             tmpreg=get_num(opP->con1,10);
  277. !             if(tmpreg==8)
  278. !                 tmpreg=0;
  279.               install_operand(s[1],tmpreg);
  280.               break;
  281.   
  282. --- 1982,1997 ----
  283.               break;
  284.   
  285.           case 'Q':
  286. !             if (s[1]!='s') {
  287. !                 tmpreg=get_num(opP->con1,10);
  288. !                   if(tmpreg==8)
  289. !                     tmpreg=0;
  290. !             }
  291. !             else {
  292. !                 tmpreg=get_num(opP->con1,20);
  293. !                   if(tmpreg==8)
  294. !                     tmpreg=0;
  295. !             }
  296.               install_operand(s[1],tmpreg);
  297.               break;
  298.   
  299. diff -c -r gas-1.38/struc-symbol.h cross-gas-1.38/struc-symbol.h
  300. *** gas-1.38/struc-symbol.h    Fri Jul  6 14:43:12 1990
  301. --- cross-gas-1.38/struc-symbol.h    Mon Jan 21 18:52:59 1991
  302. ***************
  303. *** 18,24 ****
  304.   the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  305.   
  306.   #ifndef        VMS
  307. ! #include "a.out.gnu.h"        /* Needed to define struct nlist. Sigh. */
  308.   #else
  309.   #include "a_out.h"
  310.   #endif
  311. --- 18,28 ----
  312.   the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  313.   
  314.   #ifndef        VMS
  315. ! #  if (atarist || atariminix || CROSSATARI)
  316. ! #    include <gnu-out.h>
  317. ! #  else
  318. ! #    include "a.out.gnu.h"        /* Needed to define struct nlist. Sigh. */
  319. ! #  endif
  320.   #else
  321.   #include "a_out.h"
  322.   #endif
  323.