home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / diffs / gas.dif < prev    next >
Encoding:
Text File  |  1991-03-24  |  11.6 KB  |  368 lines

  1. diff +context=3 +entire-new-file ogas-1.38/i386.c gas-1.38/i386.c
  2. *** ogas-1.38/i386.c    Sun Mar 24 17:45:44 1991
  3. --- gas-1.38/i386.c    Thu Mar  7 00:11:58 1991
  4. ***************
  5. *** 423,428 ****
  6. --- 423,432 ----
  7.   
  8.   #endif /* DEBUG386 */
  9.   
  10. + #ifdef GNUDOS
  11. + static int gnudos_pending_wait=0;
  12. + static int gnudos_first_char;
  13. + #endif
  14.   /*
  15.     This is the guts of the machine-dependent assembler.  LINE points to a
  16.     machine dependent instruction.  This funciton is supposed to emit
  17. ***************
  18. *** 502,507 ****
  19. --- 506,515 ----
  20.         return;
  21.       }
  22.   
  23. + #ifdef GNUDOS
  24. +     gnudos_first_char = *token_start;
  25. + #endif
  26.       /* Lookup insn in hash; try intel & att naming conventions if appropriate;
  27.          that is:  we only use the opcode suffix 'b' 'w' or 'l' if we need to. */
  28.       current_templates = (templates *) hash_find (op_hash, token_start);
  29. ***************
  30. *** 1002,1007 ****
  31. --- 1010,1027 ----
  32.       t->base_opcode = INT3_OPCODE;
  33.       i.imm_operands = 0;
  34.     }
  35. + #ifdef GNUDOS
  36. +   /* If we're about to output a non-float, and the last insn was a float,
  37. +      then output a fwait opcode between the two. */
  38. +   if (gnudos_pending_wait && (gnudos_first_char != 'f'))
  39. +   {
  40. +     register char *p;
  41. +     p = frag_more(1);
  42. +     p[0] = 0x9b; /* fwait */
  43. +   }
  44. +   gnudos_pending_wait = (gnudos_first_char == 'f');
  45. + #endif
  46.   
  47.     /* We are ready to output the insn. */
  48.     {
  49. diff +context=3 +entire-new-file ogas-1.38/makefile gas-1.38/makefile
  50. *** ogas-1.38/makefile    Sun Mar 24 17:45:48 1991
  51. --- gas-1.38/makefile    Sun Mar 24 17:46:46 1991
  52. ***************
  53. *** 21,31 ****
  54.   # SPARC, ns32k, or i860 assembler(s).
  55.   
  56.   BINDIR = /usr/local/bin
  57. - #CC=gcc
  58.   
  59.   # If you are on a BSD system, un-comment the next two lines, and comment out
  60.   # the lines for SystemV and HPUX below
  61. ! G0 = -g  -I. #-O -Wall
  62.   LDFLAGS = $(CFLAGS)
  63.   #
  64.   # To compile gas on a System Five machine, comment out the two lines above
  65. --- 21,39 ----
  66.   # SPARC, ns32k, or i860 assembler(s).
  67.   
  68.   BINDIR = /usr/local/bin
  69.   
  70. + # GNUDOS: changed flonum-copy.* to fn-copy.* for MSDOS file system
  71. + # GNUDOS: changed a.out.gnu.h to aoutgnu.h for MSDOS file system
  72. + # GNUDOS: set up for gcc
  73. + CC=gcc -DGNUDOS
  74. + .c.o:
  75. +     $(CC) $(CFLAGS) $(OPTIONS) -c $*.c
  76.   # If you are on a BSD system, un-comment the next two lines, and comment out
  77.   # the lines for SystemV and HPUX below
  78. ! # GNUDOS: optimize
  79. ! G0 = -O  -I. #-g -Wall
  80.   LDFLAGS = $(CFLAGS)
  81.   #
  82.   # To compile gas on a System Five machine, comment out the two lines above
  83. ***************
  84. *** 109,115 ****
  85.   #
  86.   
  87.   O1 =  -DNO_VARARGS
  88. ! O2 = # -DNON_BROKEN_WORDS
  89.   O3 = # -Dm68851
  90.   O4 = # -DEXEC_VERSION=1
  91.   O5 = # -DSIGTY=void
  92. --- 117,123 ----
  93.   #
  94.   
  95.   O1 =  -DNO_VARARGS
  96. ! O2 =  -DNON_BROKEN_WORDS
  97.   O3 = # -Dm68851
  98.   O4 = # -DEXEC_VERSION=1
  99.   O5 = # -DSIGTY=void
  100. ***************
  101. *** 118,124 ****
  102.   O7 = # -DDOT_LABEL_PREFIX
  103.   O8 = # -DSEQUENT_COMPATABILITY
  104.   O9 = # -DREGISTER_PREFIX=\'%\'
  105. ! O10= # -DOTHER_ALIGN
  106.   
  107.   G1 = # -DUSE_SYSTEM_HDR
  108.   G2 = # -DUSE_HP_HDR
  109. --- 126,132 ----
  110.   O7 = # -DDOT_LABEL_PREFIX
  111.   O8 = # -DSEQUENT_COMPATABILITY
  112.   O9 = # -DREGISTER_PREFIX=\'%\'
  113. ! O10=  -DOTHER_ALIGN
  114.   
  115.   G1 = # -DUSE_SYSTEM_HDR
  116.   G2 = # -DUSE_HP_HDR
  117. ***************
  118. *** 131,137 ****
  119.   #
  120.   # To make the 68020 assembler compile as the default, un-comment the next
  121.   # line, and comment out all the other lines that start with DEFAULT_GAS
  122. ! DEFAULT_GAS=a68
  123.   #
  124.   # To make the VAX assembler compile as the default, un-comment the next
  125.   # line and commment out all the other lines that start with DEFAULT_GAS
  126. --- 139,145 ----
  127.   #
  128.   # To make the 68020 assembler compile as the default, un-comment the next
  129.   # line, and comment out all the other lines that start with DEFAULT_GAS
  130. ! #DEFAULT_GAS=a68
  131.   #
  132.   # To make the VAX assembler compile as the default, un-comment the next
  133.   # line and commment out all the other lines that start with DEFAULT_GAS
  134. ***************
  135. *** 139,145 ****
  136.   #
  137.   # To make the 80386 assembler compile as the default, un-comment the next
  138.   # line and commment out all the other lines that start with DEFAULT_GAS
  139. ! #DEFAULT_GAS=a386
  140.   #
  141.   # To make the ns32k assembler compile as the default, un-comment the next
  142.   # line and commment out all the other lines that start with DEFAULT_GAS
  143. --- 147,153 ----
  144.   #
  145.   # To make the 80386 assembler compile as the default, un-comment the next
  146.   # line and commment out all the other lines that start with DEFAULT_GAS
  147. ! DEFAULT_GAS=a386
  148.   #
  149.   # To make the ns32k assembler compile as the default, un-comment the next
  150.   # line and commment out all the other lines that start with DEFAULT_GAS
  151. ***************
  152. *** 160,172 ****
  153.   atof-generic.o    append.o    messages.o    expr.o        app.o         \
  154.   frags.o        input-file.o    input-scrub.o    output-file.o                  \
  155.   subsegs.o    symbols.o                    version.o     \
  156. ! flonum-const.o    flonum-copy.o    flonum-mult.o    strstr.o    bignum-copy.o \
  157.   obstack.o
  158.   #gdb.o        gdb-file.o    gdb-symbols.o    gdb-blocks.o    gdb-lines.o
  159.   
  160.   a:    $(DEFAULT_GAS)
  161. !     @rm -f a
  162. !     @ln $(DEFAULT_GAS) a
  163.   
  164.   # I860 GAS ------------------------------------------------------------------
  165.   u = i860.o  atof-ieee.o  write-i860.o  read-i860.o
  166. --- 168,181 ----
  167.   atof-generic.o    append.o    messages.o    expr.o        app.o         \
  168.   frags.o        input-file.o    input-scrub.o    output-file.o                  \
  169.   subsegs.o    symbols.o                    version.o     \
  170. ! flonum-const.o    fn-copy.o    flonum-mult.o    strstr.o    bignum-copy.o \
  171.   obstack.o
  172.   #gdb.o        gdb-file.o    gdb-symbols.o    gdb-blocks.o    gdb-lines.o
  173.   
  174. + # GNUDOS: just make it
  175.   a:    $(DEFAULT_GAS)
  176. ! #    @rm -f a
  177. ! #    @ln $(DEFAULT_GAS) a
  178.   
  179.   # I860 GAS ------------------------------------------------------------------
  180.   u = i860.o  atof-ieee.o  write-i860.o  read-i860.o
  181. ***************
  182. *** 243,250 ****
  183.   
  184.   atof-ieee.o:    flonum.h
  185.   
  186. ! a386: $a $x
  187. !     $(CC) -o a386 $(LDFLAGS) $a $x $(LOADLIBES)
  188.   
  189.   # 68020 GAS ------------------------------------------------------------------
  190.   y = m68k.o  atof-ieee.o write.o read.o
  191. --- 252,261 ----
  192.   
  193.   atof-ieee.o:    flonum.h
  194.   
  195. ! # GNUDOS: use response file
  196. ! a386: $(a) $(x)
  197. !     >a386.rf $(LDFLAGS) $(a) $(x) $(LOADLIBES)
  198. !     $(CC) -o a386 @a386.rf
  199.   
  200.   # 68020 GAS ------------------------------------------------------------------
  201.   y = m68k.o  atof-ieee.o write.o read.o
  202. ***************
  203. *** 253,259 ****
  204.   
  205.   atof-ieee.o:    flonum.h
  206.   
  207. ! m68k.o:        m68k.c a.out.gnu.h as.h expr.h flonum.h frags.h hash.h
  208.   m68k.o:        m68k-opcode.h m68k.h md.h obstack.h struc-symbol.h
  209.       $(CC) $(CFLAGS) $(OPTIONS) -c m68k.c
  210.   
  211. --- 264,270 ----
  212.   
  213.   atof-ieee.o:    flonum.h
  214.   
  215. ! m68k.o:        m68k.c aoutgnu.h as.h expr.h flonum.h frags.h hash.h
  216.   m68k.o:        m68k-opcode.h m68k.h md.h obstack.h struc-symbol.h
  217.       $(CC) $(CFLAGS) $(OPTIONS) -c m68k.c
  218.   
  219. ***************
  220. *** 266,272 ****
  221.   Z = vax.c atof-vax.c vax-opcode.h vax-inst.h \
  222.       make-gas.com objrecdef.h vms.c vms-dbg.c README-vms-dbg
  223.   
  224. ! vax.o:        vax.c a.out.gnu.h as.h expr.h flonum.h frags.h md.h obstack.h
  225.   vax.o:        read.h struc-symbol.h symbols.h vax-inst.h vax-opcode.h
  226.   atof-vax.o:    as.h flonum.h read.h
  227.   
  228. --- 277,283 ----
  229.   Z = vax.c atof-vax.c vax-opcode.h vax-inst.h \
  230.       make-gas.com objrecdef.h vms.c vms-dbg.c README-vms-dbg
  231.   
  232. ! vax.o:        vax.c aoutgnu.h as.h expr.h flonum.h frags.h md.h obstack.h
  233.   vax.o:        read.h struc-symbol.h symbols.h vax-inst.h vax-opcode.h
  234.   atof-vax.o:    as.h flonum.h read.h
  235.   
  236. ***************
  237. *** 295,307 ****
  238.   atof-generic.c    append.c    messages.c    expr.c        bignum-copy.c \
  239.   frags.c        input-file.c    input-scrub.c    output-file.c    read.c \
  240.   subsegs.c    symbols.c    write.c                strstr.c \
  241. ! flonum-const.c    flonum-copy.c    flonum-mult.c    app.c        version.c \
  242.   obstack.c \
  243.   #gdb.c        gdb-file.c    gdb-symbols.c    gdb-blocks.c \
  244.   #gdb-lines.c
  245.   
  246.   H = \
  247. ! a.out.gnu.h    as.h        bignum.h    expr.h        flonum.h \
  248.   frags.h        hash.h        input-file.h    md.h     \
  249.   obstack.h    read.h        struc-symbol.h    subsegs.h    \
  250.   symbols.h    write.h
  251. --- 306,318 ----
  252.   atof-generic.c    append.c    messages.c    expr.c        bignum-copy.c \
  253.   frags.c        input-file.c    input-scrub.c    output-file.c    read.c \
  254.   subsegs.c    symbols.c    write.c                strstr.c \
  255. ! flonum-const.c    fn-copy.c    flonum-mult.c    app.c        version.c \
  256.   obstack.c \
  257.   #gdb.c        gdb-file.c    gdb-symbols.c    gdb-blocks.c \
  258.   #gdb-lines.c
  259.   
  260.   H = \
  261. ! aoutgnu.h    as.h        bignum.h    expr.h        flonum.h \
  262.   frags.h        hash.h        input-file.h    md.h     \
  263.   obstack.h    read.h        struc-symbol.h    subsegs.h    \
  264.   symbols.h    write.h
  265. ***************
  266. *** 325,355 ****
  267.   # General .o-->.h dependencies
  268.   
  269.   app.o:        as.h
  270. ! as.o:        a.out.gnu.h as.h read.h struc-symbol.h write.h
  271.   atof-generic.o:    flonum.h
  272.   bignum-copy.o:    bignum.h
  273. ! expr.o:        a.out.gnu.h as.h expr.h flonum.h obstack.h read.h struc-symbol.h
  274.   expr.o:         symbols.h
  275.   flonum-const.o:    flonum.h
  276. ! flonum-copy.o:    flonum.h
  277.   flonum-mult.o:    flonum.h
  278. ! flonum-normal.o:flonum.h
  279.   flonum-print.o:    flonum.h
  280. ! frags.o:    a.out.gnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h
  281.   #gdb.o:        as.h
  282.   #gdb-blocks.o:    as.h
  283.   #gdb-lines.o:    as.h frags.h obstack.h
  284. ! #gdb-symbols.o:    a.out.gnu.h as.h struc-symbol.h
  285.   hash.o:        hash.h
  286.   input-file.o:    input-file.h
  287.   input-scrub.o:    as.h input-file.h read.h
  288.   messages.o:    as.h
  289.   obstack.o:    obstack.h
  290. ! read.o:        a.out.gnu.h as.h expr.h flonum.h frags.h hash.h md.h obstack.h
  291.   read.o:        read.h struc-symbol.h symbols.h
  292. ! subsegs.o:    a.out.gnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h write.h
  293. ! symbols.o:    a.out.gnu.h as.h frags.h hash.h obstack.h struc-symbol.h symbols.h
  294. ! write.o:    a.out.gnu.h as.h md.h obstack.h struc-symbol.h subsegs.h
  295.   write.o:    symbols.h write.h
  296.   
  297.   flonum.h:                    bignum.h
  298. --- 336,366 ----
  299.   # General .o-->.h dependencies
  300.   
  301.   app.o:        as.h
  302. ! as.o:        aoutgnu.h as.h read.h struc-symbol.h write.h
  303.   atof-generic.o:    flonum.h
  304.   bignum-copy.o:    bignum.h
  305. ! expr.o:        aoutgnu.h as.h expr.h flonum.h obstack.h read.h struc-symbol.h
  306.   expr.o:         symbols.h
  307.   flonum-const.o:    flonum.h
  308. ! fn-copy.o:    flonum.h
  309.   flonum-mult.o:    flonum.h
  310. ! flonum-normal.o: flonum.h
  311.   flonum-print.o:    flonum.h
  312. ! frags.o:    aoutgnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h
  313.   #gdb.o:        as.h
  314.   #gdb-blocks.o:    as.h
  315.   #gdb-lines.o:    as.h frags.h obstack.h
  316. ! #gdb-symbols.o:    aoutgnu.h as.h struc-symbol.h
  317.   hash.o:        hash.h
  318.   input-file.o:    input-file.h
  319.   input-scrub.o:    as.h input-file.h read.h
  320.   messages.o:    as.h
  321.   obstack.o:    obstack.h
  322. ! read.o:        aoutgnu.h as.h expr.h flonum.h frags.h hash.h md.h obstack.h
  323.   read.o:        read.h struc-symbol.h symbols.h
  324. ! subsegs.o:    aoutgnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h write.h
  325. ! symbols.o:    aoutgnu.h as.h frags.h hash.h obstack.h struc-symbol.h symbols.h
  326. ! write.o:    aoutgnu.h as.h md.h obstack.h struc-symbol.h subsegs.h
  327.   write.o:    symbols.h write.h
  328.   
  329.   flonum.h:                    bignum.h
  330. diff +context=3 +entire-new-file ogas-1.38/output-f.c gas-1.38/output-f.c
  331. *** ogas-1.38/output-f.c    Sun Mar 24 17:45:50 1991
  332. --- gas-1.38/output-f.c    Thu Mar  7 00:11:58 1991
  333. ***************
  334. *** 38,44 ****
  335. --- 38,48 ----
  336.   {
  337.     if(name[0]=='-' && name[1]=='\0')
  338.       stdoutput=stdout;
  339. + #ifdef GNUDOS
  340. +   else if ( ! (stdoutput = fopen( name, "wb" )) )
  341. + #else
  342.     else if ( ! (stdoutput = fopen( name, "w" )) )
  343. + #endif
  344.       {
  345.         as_perror ("FATAL: Can't create %s", name);
  346.         exit(42);
  347. diff +context=3 +entire-new-file ogas-1.38/struc-sy.h gas-1.38/struc-sy.h
  348. *** ogas-1.38/struc-sy.h    Sun Mar 24 17:45:54 1991
  349. --- gas-1.38/struc-sy.h    Thu Mar  7 00:11:58 1991
  350. ***************
  351. *** 18,24 ****
  352. --- 18,28 ----
  353.   the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  354.   
  355.   #ifndef        VMS
  356. + #ifdef GNUDOS
  357. + #include "aoutgnu.h"
  358. + #else
  359.   #include "a.out.gnu.h"        /* Needed to define struct nlist. Sigh. */
  360. + #endif
  361.   #else
  362.   #include "a_out.h"
  363.   #endif
  364.