home *** CD-ROM | disk | FTP | other *** search
- diff +context=3 +entire-new-file ogas-1.38/i386.c gas-1.38/i386.c
- *** ogas-1.38/i386.c Sun Mar 24 17:45:44 1991
- --- gas-1.38/i386.c Thu Mar 7 00:11:58 1991
- ***************
- *** 423,428 ****
- --- 423,432 ----
-
- #endif /* DEBUG386 */
-
- + #ifdef GNUDOS
- + static int gnudos_pending_wait=0;
- + static int gnudos_first_char;
- + #endif
- /*
- This is the guts of the machine-dependent assembler. LINE points to a
- machine dependent instruction. This funciton is supposed to emit
- ***************
- *** 502,507 ****
- --- 506,515 ----
- return;
- }
-
- + #ifdef GNUDOS
- + gnudos_first_char = *token_start;
- + #endif
- +
- /* Lookup insn in hash; try intel & att naming conventions if appropriate;
- that is: we only use the opcode suffix 'b' 'w' or 'l' if we need to. */
- current_templates = (templates *) hash_find (op_hash, token_start);
- ***************
- *** 1002,1007 ****
- --- 1010,1027 ----
- t->base_opcode = INT3_OPCODE;
- i.imm_operands = 0;
- }
- +
- + #ifdef GNUDOS
- + /* If we're about to output a non-float, and the last insn was a float,
- + then output a fwait opcode between the two. */
- + if (gnudos_pending_wait && (gnudos_first_char != 'f'))
- + {
- + register char *p;
- + p = frag_more(1);
- + p[0] = 0x9b; /* fwait */
- + }
- + gnudos_pending_wait = (gnudos_first_char == 'f');
- + #endif
-
- /* We are ready to output the insn. */
- {
- diff +context=3 +entire-new-file ogas-1.38/makefile gas-1.38/makefile
- *** ogas-1.38/makefile Sun Mar 24 17:45:48 1991
- --- gas-1.38/makefile Sun Mar 24 17:46:46 1991
- ***************
- *** 21,31 ****
- # SPARC, ns32k, or i860 assembler(s).
-
- BINDIR = /usr/local/bin
- - #CC=gcc
-
- # If you are on a BSD system, un-comment the next two lines, and comment out
- # the lines for SystemV and HPUX below
- ! G0 = -g -I. #-O -Wall
- LDFLAGS = $(CFLAGS)
- #
- # To compile gas on a System Five machine, comment out the two lines above
- --- 21,39 ----
- # SPARC, ns32k, or i860 assembler(s).
-
- BINDIR = /usr/local/bin
-
- + # GNUDOS: changed flonum-copy.* to fn-copy.* for MSDOS file system
- + # GNUDOS: changed a.out.gnu.h to aoutgnu.h for MSDOS file system
- +
- + # GNUDOS: set up for gcc
- + CC=gcc -DGNUDOS
- + .c.o:
- + $(CC) $(CFLAGS) $(OPTIONS) -c $*.c
- +
- # If you are on a BSD system, un-comment the next two lines, and comment out
- # the lines for SystemV and HPUX below
- ! # GNUDOS: optimize
- ! G0 = -O -I. #-g -Wall
- LDFLAGS = $(CFLAGS)
- #
- # To compile gas on a System Five machine, comment out the two lines above
- ***************
- *** 109,115 ****
- #
-
- O1 = -DNO_VARARGS
- ! O2 = # -DNON_BROKEN_WORDS
- O3 = # -Dm68851
- O4 = # -DEXEC_VERSION=1
- O5 = # -DSIGTY=void
- --- 117,123 ----
- #
-
- O1 = -DNO_VARARGS
- ! O2 = -DNON_BROKEN_WORDS
- O3 = # -Dm68851
- O4 = # -DEXEC_VERSION=1
- O5 = # -DSIGTY=void
- ***************
- *** 118,124 ****
- O7 = # -DDOT_LABEL_PREFIX
- O8 = # -DSEQUENT_COMPATABILITY
- O9 = # -DREGISTER_PREFIX=\'%\'
- ! O10= # -DOTHER_ALIGN
-
- G1 = # -DUSE_SYSTEM_HDR
- G2 = # -DUSE_HP_HDR
- --- 126,132 ----
- O7 = # -DDOT_LABEL_PREFIX
- O8 = # -DSEQUENT_COMPATABILITY
- O9 = # -DREGISTER_PREFIX=\'%\'
- ! O10= -DOTHER_ALIGN
-
- G1 = # -DUSE_SYSTEM_HDR
- G2 = # -DUSE_HP_HDR
- ***************
- *** 131,137 ****
- #
- # To make the 68020 assembler compile as the default, un-comment the next
- # line, and comment out all the other lines that start with DEFAULT_GAS
- ! DEFAULT_GAS=a68
- #
- # To make the VAX assembler compile as the default, un-comment the next
- # line and commment out all the other lines that start with DEFAULT_GAS
- --- 139,145 ----
- #
- # To make the 68020 assembler compile as the default, un-comment the next
- # line, and comment out all the other lines that start with DEFAULT_GAS
- ! #DEFAULT_GAS=a68
- #
- # To make the VAX assembler compile as the default, un-comment the next
- # line and commment out all the other lines that start with DEFAULT_GAS
- ***************
- *** 139,145 ****
- #
- # To make the 80386 assembler compile as the default, un-comment the next
- # line and commment out all the other lines that start with DEFAULT_GAS
- ! #DEFAULT_GAS=a386
- #
- # To make the ns32k assembler compile as the default, un-comment the next
- # line and commment out all the other lines that start with DEFAULT_GAS
- --- 147,153 ----
- #
- # To make the 80386 assembler compile as the default, un-comment the next
- # line and commment out all the other lines that start with DEFAULT_GAS
- ! DEFAULT_GAS=a386
- #
- # To make the ns32k assembler compile as the default, un-comment the next
- # line and commment out all the other lines that start with DEFAULT_GAS
- ***************
- *** 160,172 ****
- atof-generic.o append.o messages.o expr.o app.o \
- frags.o input-file.o input-scrub.o output-file.o \
- subsegs.o symbols.o version.o \
- ! flonum-const.o flonum-copy.o flonum-mult.o strstr.o bignum-copy.o \
- obstack.o
- #gdb.o gdb-file.o gdb-symbols.o gdb-blocks.o gdb-lines.o
-
- a: $(DEFAULT_GAS)
- ! @rm -f a
- ! @ln $(DEFAULT_GAS) a
-
- # I860 GAS ------------------------------------------------------------------
- u = i860.o atof-ieee.o write-i860.o read-i860.o
- --- 168,181 ----
- atof-generic.o append.o messages.o expr.o app.o \
- frags.o input-file.o input-scrub.o output-file.o \
- subsegs.o symbols.o version.o \
- ! flonum-const.o fn-copy.o flonum-mult.o strstr.o bignum-copy.o \
- obstack.o
- #gdb.o gdb-file.o gdb-symbols.o gdb-blocks.o gdb-lines.o
-
- + # GNUDOS: just make it
- a: $(DEFAULT_GAS)
- ! # @rm -f a
- ! # @ln $(DEFAULT_GAS) a
-
- # I860 GAS ------------------------------------------------------------------
- u = i860.o atof-ieee.o write-i860.o read-i860.o
- ***************
- *** 243,250 ****
-
- atof-ieee.o: flonum.h
-
- ! a386: $a $x
- ! $(CC) -o a386 $(LDFLAGS) $a $x $(LOADLIBES)
-
- # 68020 GAS ------------------------------------------------------------------
- y = m68k.o atof-ieee.o write.o read.o
- --- 252,261 ----
-
- atof-ieee.o: flonum.h
-
- ! # GNUDOS: use response file
- ! a386: $(a) $(x)
- ! >a386.rf $(LDFLAGS) $(a) $(x) $(LOADLIBES)
- ! $(CC) -o a386 @a386.rf
-
- # 68020 GAS ------------------------------------------------------------------
- y = m68k.o atof-ieee.o write.o read.o
- ***************
- *** 253,259 ****
-
- atof-ieee.o: flonum.h
-
- ! m68k.o: m68k.c a.out.gnu.h as.h expr.h flonum.h frags.h hash.h
- m68k.o: m68k-opcode.h m68k.h md.h obstack.h struc-symbol.h
- $(CC) $(CFLAGS) $(OPTIONS) -c m68k.c
-
- --- 264,270 ----
-
- atof-ieee.o: flonum.h
-
- ! m68k.o: m68k.c aoutgnu.h as.h expr.h flonum.h frags.h hash.h
- m68k.o: m68k-opcode.h m68k.h md.h obstack.h struc-symbol.h
- $(CC) $(CFLAGS) $(OPTIONS) -c m68k.c
-
- ***************
- *** 266,272 ****
- Z = vax.c atof-vax.c vax-opcode.h vax-inst.h \
- make-gas.com objrecdef.h vms.c vms-dbg.c README-vms-dbg
-
- ! vax.o: vax.c a.out.gnu.h as.h expr.h flonum.h frags.h md.h obstack.h
- vax.o: read.h struc-symbol.h symbols.h vax-inst.h vax-opcode.h
- atof-vax.o: as.h flonum.h read.h
-
- --- 277,283 ----
- Z = vax.c atof-vax.c vax-opcode.h vax-inst.h \
- make-gas.com objrecdef.h vms.c vms-dbg.c README-vms-dbg
-
- ! vax.o: vax.c aoutgnu.h as.h expr.h flonum.h frags.h md.h obstack.h
- vax.o: read.h struc-symbol.h symbols.h vax-inst.h vax-opcode.h
- atof-vax.o: as.h flonum.h read.h
-
- ***************
- *** 295,307 ****
- atof-generic.c append.c messages.c expr.c bignum-copy.c \
- frags.c input-file.c input-scrub.c output-file.c read.c \
- subsegs.c symbols.c write.c strstr.c \
- ! flonum-const.c flonum-copy.c flonum-mult.c app.c version.c \
- obstack.c \
- #gdb.c gdb-file.c gdb-symbols.c gdb-blocks.c \
- #gdb-lines.c
-
- H = \
- ! a.out.gnu.h as.h bignum.h expr.h flonum.h \
- frags.h hash.h input-file.h md.h \
- obstack.h read.h struc-symbol.h subsegs.h \
- symbols.h write.h
- --- 306,318 ----
- atof-generic.c append.c messages.c expr.c bignum-copy.c \
- frags.c input-file.c input-scrub.c output-file.c read.c \
- subsegs.c symbols.c write.c strstr.c \
- ! flonum-const.c fn-copy.c flonum-mult.c app.c version.c \
- obstack.c \
- #gdb.c gdb-file.c gdb-symbols.c gdb-blocks.c \
- #gdb-lines.c
-
- H = \
- ! aoutgnu.h as.h bignum.h expr.h flonum.h \
- frags.h hash.h input-file.h md.h \
- obstack.h read.h struc-symbol.h subsegs.h \
- symbols.h write.h
- ***************
- *** 325,355 ****
- # General .o-->.h dependencies
-
- app.o: as.h
- ! as.o: a.out.gnu.h as.h read.h struc-symbol.h write.h
- atof-generic.o: flonum.h
- bignum-copy.o: bignum.h
- ! expr.o: a.out.gnu.h as.h expr.h flonum.h obstack.h read.h struc-symbol.h
- expr.o: symbols.h
- flonum-const.o: flonum.h
- ! flonum-copy.o: flonum.h
- flonum-mult.o: flonum.h
- ! flonum-normal.o:flonum.h
- flonum-print.o: flonum.h
- ! frags.o: a.out.gnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h
- #gdb.o: as.h
- #gdb-blocks.o: as.h
- #gdb-lines.o: as.h frags.h obstack.h
- ! #gdb-symbols.o: a.out.gnu.h as.h struc-symbol.h
- hash.o: hash.h
- input-file.o: input-file.h
- input-scrub.o: as.h input-file.h read.h
- messages.o: as.h
- obstack.o: obstack.h
- ! read.o: a.out.gnu.h as.h expr.h flonum.h frags.h hash.h md.h obstack.h
- read.o: read.h struc-symbol.h symbols.h
- ! subsegs.o: a.out.gnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h write.h
- ! symbols.o: a.out.gnu.h as.h frags.h hash.h obstack.h struc-symbol.h symbols.h
- ! write.o: a.out.gnu.h as.h md.h obstack.h struc-symbol.h subsegs.h
- write.o: symbols.h write.h
-
- flonum.h: bignum.h
- --- 336,366 ----
- # General .o-->.h dependencies
-
- app.o: as.h
- ! as.o: aoutgnu.h as.h read.h struc-symbol.h write.h
- atof-generic.o: flonum.h
- bignum-copy.o: bignum.h
- ! expr.o: aoutgnu.h as.h expr.h flonum.h obstack.h read.h struc-symbol.h
- expr.o: symbols.h
- flonum-const.o: flonum.h
- ! fn-copy.o: flonum.h
- flonum-mult.o: flonum.h
- ! flonum-normal.o: flonum.h
- flonum-print.o: flonum.h
- ! frags.o: aoutgnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h
- #gdb.o: as.h
- #gdb-blocks.o: as.h
- #gdb-lines.o: as.h frags.h obstack.h
- ! #gdb-symbols.o: aoutgnu.h as.h struc-symbol.h
- hash.o: hash.h
- input-file.o: input-file.h
- input-scrub.o: as.h input-file.h read.h
- messages.o: as.h
- obstack.o: obstack.h
- ! read.o: aoutgnu.h as.h expr.h flonum.h frags.h hash.h md.h obstack.h
- read.o: read.h struc-symbol.h symbols.h
- ! subsegs.o: aoutgnu.h as.h frags.h obstack.h struc-symbol.h subsegs.h write.h
- ! symbols.o: aoutgnu.h as.h frags.h hash.h obstack.h struc-symbol.h symbols.h
- ! write.o: aoutgnu.h as.h md.h obstack.h struc-symbol.h subsegs.h
- write.o: symbols.h write.h
-
- flonum.h: bignum.h
- diff +context=3 +entire-new-file ogas-1.38/output-f.c gas-1.38/output-f.c
- *** ogas-1.38/output-f.c Sun Mar 24 17:45:50 1991
- --- gas-1.38/output-f.c Thu Mar 7 00:11:58 1991
- ***************
- *** 38,44 ****
- --- 38,48 ----
- {
- if(name[0]=='-' && name[1]=='\0')
- stdoutput=stdout;
- + #ifdef GNUDOS
- + else if ( ! (stdoutput = fopen( name, "wb" )) )
- + #else
- else if ( ! (stdoutput = fopen( name, "w" )) )
- + #endif
- {
- as_perror ("FATAL: Can't create %s", name);
- exit(42);
- diff +context=3 +entire-new-file ogas-1.38/struc-sy.h gas-1.38/struc-sy.h
- *** ogas-1.38/struc-sy.h Sun Mar 24 17:45:54 1991
- --- gas-1.38/struc-sy.h Thu Mar 7 00:11:58 1991
- ***************
- *** 18,24 ****
- --- 18,28 ----
- the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
- #ifndef VMS
- + #ifdef GNUDOS
- + #include "aoutgnu.h"
- + #else
- #include "a.out.gnu.h" /* Needed to define struct nlist. Sigh. */
- + #endif
- #else
- #include "a_out.h"
- #endif
-