old-cross-binutils/gas/config
Ian Lance Taylor 7e047ac2c1 Add support for macros.
* as.c: Include sb.h and macro.h.
	(max_macro_next): New global variable.
	(main): Call macro_init.
	(macro_expr): New static function.
	* as.h (max_macro_nest): Declare.
	* read.c (line_label): Rename from mri_line_label.  Change all
	uses.
	(potable): Add exitm, irp, irpc, macro, mexit, rept.
	(read_a_source_file): Always clear line_label at the start of a
	line, not just when flag_mri or LABELS_WITHOUT_COLONS.  Fixup
	MRI/LABELS_WITHOUT_COLONS handling.  In MRI mode, permit label:
	equ val.  Set line_label when calling colon.  In MRI mode, a
	leading '.' does not imply a pseudo-op.  Check for macro expansion
	before calling md_assemble.
	(s_irp): New function.
	(get_line_sb): New static function.
	(s_macro): New function.
	(s_mexit): New function.
	(s_rept): New function.
	* read.h (line_label): Rename from mri_line_label.
	(s_irp, s_rept): Declare.
	(s_macro, s_mexit): Declare.
	* input-scrub.c: Include sb.h.
	(sb_index, from_sb): New static variables.
	(macro_nest): New static variable.
	(struct input_save): Add sb_index and from_sb fields.  Change
	next_saved_file field to be struct input_save *.
	(next_saved_file): Changed to be struct input_save *.
	(input_scrub_push): Change to return type struct input_save *.
	Save sb_index and from_sb.
	(input_scrub_pop): Change parameter type to struct input_save *.
	Restore sb_index and from_sb.
	(input_scrub_include_sb): New function.
	(input_scrub_next_buffer): Handle reading from from_sb.
	(bump_line_counters): Only increment lines if not using from_sb.
	* config/tc-m68k.c (opt_table): Add nest.
	(opt_nest): New static function.
	* gasp.c: Include sb.h and macro.h.  Move all sb related functions
	and definitions to sb.h and sb.c.  Move all macro related
	functions and definitions to macro.h and macro.c.
	* sb.h, sb.c: New files, extracted from gasp.c.
	* macro.h, macro.c: Likewise.
	* Makefile.in (OBJS): Add sb.o and macro.o
	(GASPOBJS): Define.
	(gasp.new): Depend upon $(GASPOBJS).  Use $(GASPOBJS) to link.
	(TARG_CPU_DEP_m68k): Depend upon subsegs.h.
	(gasp.o): Depend upon sb.h and macro.h.
	(sb.o): New target.
	(macro.o): New target.
	(as.o): Depend upon sb.h and macro.h.
	(input-scrub.o): Depend upon sb.h.
	(read.o): Depend upon sb.h and macro.h.
1995-08-21 18:35:11 +00:00
..
.Sanitize * config/m68k-parse.y: New file: bison grammar for m68k operands, 1995-08-08 02:36:10 +00:00
alpha-opcode.h fsf address update 1995-07-06 21:18:08 +00:00
aout_gnu.h Dos File renaming 1992-02-27 18:52:18 +00:00
arm-big.mt Bunch of changes from Richard Earnshaw for generic bi-endian ARM aout targets. 1995-05-18 22:21:18 +00:00
arm-lit.mt Bunch of changes from Richard Earnshaw for generic bi-endian ARM aout targets. 1995-05-18 22:21:18 +00:00
atof-ieee.c Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
atof-tahoe.c Whitespace/comment cleanup. Use PARAMS in tc-vax.c. 1993-09-28 04:47:32 +00:00
atof-vax.c force all files to end in "/* end of filename" 1992-02-13 09:13:54 +00:00
e-mipsecoff.c First cut at handling multiple emulation modes for some MIPS targets. 1995-05-10 23:08:40 +00:00
e-mipself.c First cut at handling multiple emulation modes for some MIPS targets. 1995-05-10 23:08:40 +00:00
go32.cfg Changes from net 2.5.2 release branch: 1994-11-03 23:15:54 +00:00
i386coff.mt Move cpu-specific dependencies into Makefile.in, instead of having sometimes 1995-05-02 06:46:21 +00:00
m68k-parse.h * config/tc-m68k.c (m68k_float_copnum): New static variable. 1995-08-09 19:32:49 +00:00
m68k-parse.y * config/m68k-parse.y: New file: bison grammar for m68k operands, 1995-08-08 02:36:10 +00:00
m68kcoff.mt Move cpu-specific dependencies into Makefile.in, instead of having sometimes 1995-05-02 06:46:21 +00:00
m88k-opcode.h fsf address update 1995-07-06 21:18:08 +00:00
m88kcoff.mt Move cpu-specific dependencies into Makefile.in, instead of having sometimes 1995-05-02 06:46:21 +00:00
mips-big.mt Move cpu-specific dependencies into Makefile.in, instead of having sometimes 1995-05-02 06:46:21 +00:00
mips-lit.mt Move cpu-specific dependencies into Makefile.in, instead of having sometimes 1995-05-02 06:46:21 +00:00
obj-aout.c * config/obj-aout.c (obj_aout_frob_symbol): Warn about an attempt 1995-07-05 19:04:58 +00:00
obj-aout.h * as.h: Replace flagseen with separate variables. 1994-06-03 20:59:20 +00:00
obj-bout.c fsf address update 1995-07-06 21:18:08 +00:00
obj-bout.h * app.c (do_scrub_next_char): Always accept \v. Don't make it 1995-07-07 20:10:27 +00:00
obj-coff.c * write.c (adjust_reloc_syms): Check that symbol is not NULL 1995-08-09 19:34:00 +00:00
obj-coff.h Support for long filenames non-bfd coff. bfd/7288 1995-06-30 00:53:37 +00:00
obj-ecoff.c Tue Jan 4 15:12:43 1994 Stan Shebs (shebs@andros.cygnus.com) 1994-01-04 23:35:56 +00:00
obj-ecoff.h * config/obj-ecoff.h (OBJ_PROCESS_STAB): Add new first argument, ignored. 1995-05-04 23:41:32 +00:00
obj-elf.c First cut at handling multiple emulation modes for some MIPS targets. 1995-05-10 23:08:40 +00:00
obj-elf.h SEPARATE_STAB_SECTIONS should be defined to 1, not empty. 1995-05-05 21:44:11 +00:00
obj-generic.c fsf address update 1995-07-06 21:18:08 +00:00
obj-generic.h fsf address update 1995-07-06 21:18:08 +00:00
obj-hp300.c fsf address update 1995-07-06 21:18:08 +00:00
obj-hp300.h fsf address update 1995-07-06 21:18:08 +00:00
obj-ieee.c fsf address update 1995-07-06 21:18:08 +00:00
obj-ieee.h fsf address update 1995-07-06 21:18:08 +00:00
obj-multi.c First cut at handling multiple emulation modes for some MIPS targets. 1995-05-10 23:08:40 +00:00
obj-som.c * config/tc-hppa.c: Disable multiple $CODE$ subspace code. It 1994-01-19 00:21:16 +00:00
obj-som.h * config/obj-som.c (obj_read_begin_hook): Delete unused function. 1993-12-06 07:19:13 +00:00
obj-vms.c yet more vms work from pat rankin 1995-08-09 01:39:47 +00:00
obj-vms.h more vms changes 1995-07-28 00:45:53 +00:00
ppc-big.mt Add little endian PowerPC support. 1995-05-09 21:17:19 +00:00
ppc-lit.mt Add little endian PowerPC support. 1995-05-09 21:17:19 +00:00
tc-a29k.c * config/tc-sh.c (sh_relax): Rename from relax, and make global. 1995-07-19 16:14:49 +00:00
tc-a29k.h * read.c (s_set): Remove unused local ptr. 1995-08-10 04:44:59 +00:00
tc-alpha.c * config/tc-alpha.h (alpha_do_align): Don't declare. 1995-07-06 16:59:29 +00:00
tc-alpha.h * config/tc-alpha.h (alpha_do_align): Don't declare. 1995-07-06 16:59:29 +00:00
tc-arc.c * config/tc-arc.c (byte_order): Provide explicit initial value. 1995-07-14 17:31:30 +00:00
tc-arc.h fsf address update 1995-07-06 21:18:08 +00:00
tc-generic.c This commit was manufactured by cvs2svn to create branch 'binutils'. 1991-04-04 18:19:54 +00:00
tc-generic.h White space and comments only. The devo tree prior to this delta is 1992-02-13 08:33:54 +00:00
tc-h8300.c * config/tc-h8300.c (parse_exp, get_operands, clever_message, md_assemble, 1994-12-17 01:11:20 +00:00
tc-h8300.h For COFF targets, make sure F_RELFLG is set exactly when no relocs are present, 1995-01-12 00:36:23 +00:00
tc-h8500.c * config/tc-sh.c (sh_relax): Rename from relax, and make global. 1995-07-19 16:14:49 +00:00
tc-h8500.h * read.c (s_set): Remove unused local ptr. 1995-08-10 04:44:59 +00:00
tc-hppa.c * config/tc-hppa.c (md_pseudo_table): Add entries for 1995-08-13 06:39:39 +00:00
tc-hppa.h * config/tc-hppa.h (MAX_RELOC_EXPANSION): Bump to 6. 1995-07-03 23:33:21 +00:00
tc-i386.c fsf address update 1995-07-06 21:18:08 +00:00
tc-i386.h Add SPARC ELF PIC support. 1995-07-07 17:03:21 +00:00
tc-i860.c fix definitions of md_create_long_jump, md_create_short_jump, 1993-07-12 19:42:32 +00:00
tc-i860.h This commit was manufactured by cvs2svn to create branch 'binutils'. 1991-04-04 18:19:54 +00:00
tc-i960.c * as.c (show_usage): Remove target specific messages; 1994-06-03 17:42:27 +00:00
tc-i960.h force all files to end in "/* end of filename" 1992-02-13 09:13:54 +00:00
tc-m68k.c Add support for macros. 1995-08-21 18:35:11 +00:00
tc-m68k.h * tc-m68k.c (flag_reg_prefix_optional): New variable. Initialized to value of 1994-04-26 22:21:15 +00:00
tc-m88k.c fsf address update 1995-07-06 21:18:08 +00:00
tc-m88k.h * read.c (s_set): Remove unused local ptr. 1995-08-10 04:44:59 +00:00
tc-m68851.h force all files to end in "/* end of filename" 1992-02-13 09:13:54 +00:00
tc-mips.c Tue Jul 11 14:28:55 1995 Jeff Spiegel <jeffs@lsil.com> 1995-07-11 18:30:25 +00:00
tc-mips.h fsf address update 1995-07-06 21:18:08 +00:00
tc-ns32k.c fix definitions of md_create_long_jump, md_create_short_jump, 1993-07-12 19:42:32 +00:00
tc-ns32k.h White space and comment changes, and #ifdef __STDC__ becomes #if 1992-02-15 21:09:34 +00:00
tc-ppc.c Allow @HA, @L, and @H on constant expressions. 1995-08-21 17:47:01 +00:00
tc-ppc.h * as.h (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): If not already defined, define 1995-05-04 01:56:40 +00:00
tc-rce.c * config/tc-sh.c (sh_relax): Rename from relax, and make global. 1995-07-19 16:14:49 +00:00
tc-rce.h * config/tc-sh.c (sh_relax): Rename from relax, and make global. 1995-07-19 16:14:49 +00:00
tc-sh.c * config/tc-sh.c (parse_reg): Handle new FP registers. 1995-08-07 08:58:12 +00:00
tc-sh.h Wed Sep 7 17:21:12 1994 Steve Chamberlain (sac@jonny.cygnus.com) 1994-09-08 00:38:17 +00:00
tc-sparc.c * config/tc-sparc.c (tc_gen_reloc): If PIC, only change PCREL_S2 1995-08-16 20:21:49 +00:00
tc-sparc.h fsf address update 1995-07-06 21:18:08 +00:00
tc-tahoe.c * config/tc-sh.c (sh_relax): Rename from relax, and make global. 1995-07-19 16:14:49 +00:00
tc-tahoe.h * read.c (s_set): Remove unused local ptr. 1995-08-10 04:44:59 +00:00
tc-vax.c Cleanup of VAX and VMS code, from Pat Rankin: 1995-01-19 20:01:07 +00:00
tc-vax.h This commit was manufactured by cvs2svn to create branch 'binutils'. 1991-04-04 18:19:54 +00:00
tc-w65.c * config/tc-sh.c (sh_relax): Rename from relax, and make global. 1995-07-19 16:14:49 +00:00
tc-w65.h * config/tc-sh.c (sh_relax): Rename from relax, and make global. 1995-07-19 16:14:49 +00:00
tc-z8k.c * config/tc-h8500.c (build_bytes): Get reloc type right for a 1993-12-11 19:28:41 +00:00
tc-z8k.h Support for the Z8k 1992-08-25 22:12:54 +00:00
te-delta.h delete some unused TE_* macros 1995-05-02 04:47:35 +00:00
te-dpx2.h * config/te-dpx2.h: Include obj-format.h. 1995-05-28 04:36:45 +00:00
te-generic.h * as.h (LOCAL_LABELS_DOLLAR, LOCAL_LABELS_FB): If not already defined, define 1995-05-04 01:56:40 +00:00
te-go32.h delete some unused TE_* macros 1995-05-02 04:47:35 +00:00
te-hp300.h fsf address update 1995-07-06 21:18:08 +00:00
te-hppa.h hppa configuration 1993-05-05 12:43:06 +00:00
te-i386aix.h minor reorg of tranlee's stuff 1992-02-21 11:37:01 +00:00
te-ic960.h fsf address update 1995-07-06 21:18:08 +00:00
te-lynx.h More Lynx support, plus better stabs-in-coff generation. 1993-09-28 19:22:08 +00:00
te-mach.h First attempt at i386-mach3 support. 1994-02-18 19:57:35 +00:00
te-multi.h First cut at handling multiple emulation modes for some MIPS targets. 1995-05-10 23:08:40 +00:00
te-nbsd.h * config/tc-m68k.h (TARGET_FORMAT): If TE_NetBSD define as 1994-11-04 00:13:13 +00:00
te-nbsd532.h Renamed config/te-netbsd532.h to te-nbsd532.h. 1994-10-13 00:33:21 +00:00
te-pc532mach.h updated ns532 support from Ian Dall 1994-07-14 18:58:06 +00:00
te-pe.h Fri May 12 14:17:47 1995 Steve Chamberlain <sac@slash.cygnus.com> 1995-05-12 21:26:01 +00:00
te-ppcnw.h fsf address update 1995-07-06 21:18:08 +00:00
te-sco386.h deleting more unused macros 1995-05-02 06:26:15 +00:00
te-sun3.h remove all rcs keywords 1992-02-13 08:39:15 +00:00
te-sysv32.h force all files to end in "/* end of filename" 1992-02-13 09:13:54 +00:00
vax-inst.h force all files to end in "/* end of filename" 1992-02-13 09:13:54 +00:00
vms-conf.h Thu Jan 19 18:10:05 1995 Pat Rankin (rankin@eql.caltech.edu) 1995-02-08 23:52:51 +00:00