Jim Blandy [Tue, 11 May 1999 12:42:12 +0000 (12:42 +0000)]
* cplus-dem.c (main): Use table lookup to distinguish identifier
characters from non-identifier characters.
(standard_symbol_alphabet, hp_symbol_alphabet): New functions.
* ldlang.c (walk_wild, walk_wild_file, walk_wild_section,
output_section_callback, gc_section_callback): New functions for
generic section walks.
(wild, lang_gc_wild): Use walk_wild.
(wild_file, lang_gc_wild_file): Deleted. Common logic moved to
walk_wild_file.
(wild_section, lang_gc_wild_section): Deleted. Common logic moved
to walk_fild_section. Unique logic moved into callbacks
output_section_callback and gc_section_callback.
* configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
* getruntime.c: Only attempt to include sys/resource.h and
use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
are defined.
Fred Fish <[email protected]>
* dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
assignment from "unsigned char *" to "char *".
(decode_line_info): Likewise for dwarf_line_buffer assignment.
* config/tc-alpha.c (cpu_types): Enable EV6 PALcode with -m21264.
(emit_insn): Look for pc-relative and no-overflow specifiers on
internal relocation types.
Jim Blandy [Sat, 13 Feb 1999 21:36:35 +0000 (21:36 +0000)]
* config/tc-mips.c: Remove all the mips_NNNN variables; just use
mips_cpu instead.
(mips_4650, mips_4010, mips_4100): Variables removed.
start-sanitize-vr4xxx
(mips_4121): Variable removed.
end-sanitize-vr4xxx
start-sanitize-vr4320
(mips_4320): Variable removed.
end-sanitize-vr4320
start-sanitize-cygnus
(mips_5400): Variable removed.
end-sanitize-cygnus
start-sanitize-r5900
(mips_5900): Variable removed.
end-sanitize-r5900
start-sanitize-tx49
(mips_4900): Variable removed.
end-sanitize-tx49
(hilo_interlocks, gpr_interlocks, append_insn, macro_build, macro,
macro2, mips16_macro, mips_ip): Test mips_cpu, not the mips_NNNN
variables.
(md_begin): Don't bother initializing the mips_NNNN variables;
mips_cpu is set, and that's good enough now.
(md_parse_option): Have the -mNNNN options set mips_cpu instead of
the mips_NNNN variable. The -no-mNNNN flags are now no-ops.
(show): New function, to handle wrapping in the CPU lists.
(md_show_usage): Update lists of -mcpu and -mNNNN switches.
Jim Blandy [Sat, 13 Feb 1999 20:06:53 +0000 (20:06 +0000)]
* gas/mips/mips.exp: Run the new tests, below.
* gas/mips/elf_e_flags1.d, gas/mips/elf_e_flags2.d,
gas/mips/elf_e_flags3.d, gas/mips/elf_e_flags4.d: New files.
* gas/mips/elf_e_flags.c, gas/mips/elf_e_flags.s: New files.
* config/tc-i386.c: Prototype many functions.
(set_intel_syntax): Accept `prefix'/`noprefix' specifiers.
(i386_immediate): Remove unused second argument.
(i386_intel_operand): Fix i386_is_reg typo.
(i386_operand): Use allow_naked_reg.
(output_invalid): Make operand int for K&R.
Doug Evans [Thu, 11 Feb 1999 03:24:19 +0000 (03:24 +0000)]
* gas/m32r/allinsn.d: Prefix all | with \.
(push,pop): Fix expected output.
* gas/m32r/relax-1.d: Emitted nops are serial, not parallel.
* gas/m32r/fslot.d: Prefix all | with \.
* gas/m32r/fslotx.d: Prefix all | with \.
* gas/m32r/m32rx.d: Assemble with -O to get effect we're testing for.
Prefix all | with \. Fix misc. typos.
* gas/m32r/m32rx.s (bc__add,bcl__addi): Use non-relaxable versions
of branches so we get the effect we're testing for.
* gas/m32r/relax-2.d: Prefix all | with \.
| must be prefixed with \ (or otherwise escaped).
Fix problems that were then revealed.
Some still remain in m32rx.[ds].
Doug Evans [Wed, 10 Feb 1999 23:39:09 +0000 (23:39 +0000)]
* sparc-desc.c: New file.
* sparc-desc.h: New file.
* sparc-opc.h: New file.
* decode64.c: New file.
* decode64.h: New file.
* sem64.c: New file.
* cpu64.c: New file.
* cpu64.h: New file.
* model64.h: New file.
* mloop64.in: New file.
* regs64.h: New file.
* trap64.c: New file.
* cpu32.h,decode32.c,decode32.h,model32.c,sem32.c: Rebuild.
Stan Shebs [Wed, 10 Feb 1999 21:28:03 +0000 (21:28 +0000)]
Declare Gould configuration obsolete:
* configure.host, configure.tgt: Comment out Gould configs.
* Makefile.in: Comment out Gould-related actions.
* gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
* NEWS: Mention obsolete status.
And the first one bites the dust...
Doug Evans [Wed, 10 Feb 1999 03:20:59 +0000 (03:20 +0000)]
* Makefile.am (DISTCLEANFILES): Change cgen-opc.h to cgen-desc.h.
(cgen.o): Ditto.
(EXTRA_as_new_SOURCES): Comment out.
(.tcdep): <arch>-opc.h renamed to <arch>-desc.h.
* Makefile.in: Rebuild.
* doc/Makefile.in: Rebuild.
* configure.in: Require autoconf 2.13. Redo using_cgen handling.
Delete call to AM_CYGWIN32. Replace AM_EXEEXT with AC_EXEEXT.
(AC_OUTPUT): <arch>-opc.h renamed to <arch>-desc.h.
* configure: Rebuild.
* aclocal.m4: Rebuild.
* config.in: Rebuild.
* cgen.c: Include cgen-desc.h, not cgen-opc.h.
(*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
(gas_cgen_cpu_desc): Renamed from gas_cgen_opcode_desc.
CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
CGEN_OPERAND_ATTR renamed to CGEN_OPERAND_ATTR_VALUE.
(gas_cgen_record_fixup): Remove unnecessary != 0 test.
(gas_cgen_record_fixup_exp): Ditto.
(gas_cgen_finish_insn): Ditto. Refer to operand table via cpu
descriptor, not global variable.
(gas_cgen_md_apply_fix3): Refer to operand_table via cpu
descriptor, not global variable. Refer to insert_operand handler
via cpu descriptor, not global function.
* cgen.h (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
* config/tc-fr30.c: Include opcodes/fr30-desc.h.
(*): gas_cgen_opcode_desc renamed to gas_cgen_cpu_desc.
CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
Update call to CGEN_OPERAND_TYPE,CGEN_INSN_OPERANDS.
* config/tc-m32r.c: Ditto.
(assemble_two_insns): Update calls to cgen_lookup_get_insn_operands.
(md_assemble): Ditto.
(md_convert_frag): Update call to CGEN_OPERAND_ENTRY.
Doug Evans [Wed, 10 Feb 1999 03:19:32 +0000 (03:19 +0000)]
* Makefile.am (DISTCLEANFILES): Change cgen-opc.h to cgen-desc.h.
(cgen.o): Ditto.
(EXTRA_as_new_SOURCES): Comment out.
(.tcdep): <arch>-opc.h renamed to <arch>-desc.h.
* Makefile.in: Rebuild.
* configure.in: Require autoconf 2.13. Redo using_cgen handling.
Delete call to AM_CYGWIN32. Replace AM_EXEEXT with AC_EXEEXT.
(AC_OUTPUT): <arch>-opc.h renamed to <arch>-desc.h.
* configure: Rebuild.
* aclocal.m4: Rebuild.
* config.in: Rebuild.
* cgen.c: Include cgen-desc.h, not cgen-opc.h.
(*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
(gas_cgen_cpu_desc): Renamed from gas_cgen_opcode_desc.
CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
CGEN_OPERAND_ATTR renamed to CGEN_OPERAND_ATTR_VALUE.
(gas_cgen_record_fixup): Remove unnecessary != 0 test.
(gas_cgen_record_fixup_exp): Ditto.
(gas_cgen_finish_insn): Ditto. Refer to operand table via cpu
descriptor, not global variable.
(gas_cgen_md_apply_fix3): Refer to operand_table via cpu
descriptor, not global variable. Refer to insert_operand handler
via cpu descriptor, not global function.
* cgen.h (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
* config/tc-fr30.c: Include opcodes/fr30-desc.h.
(*): gas_cgen_opcode_desc renamed to gas_cgen_cpu_desc.
CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
Update call to CGEN_OPERAND_TYPE,CGEN_INSN_OPERANDS.
* config/tc-m32r.c: Ditto.
(assemble_two_insns): Update calls to cgen_lookup_get_insn_operands.
(md_assemble): Ditto.
(md_convert_frag): Update call to CGEN_OPERAND_ENTRY.
* Makefile.am (fr30 cgen dependencies): Add new files.
(m32r cgen dependencies): Add new files.
(CGENFILES): Update for opcode table reorg.
(run-cgen): Pass $(extrafiles).
(stamp-m32r): Set extrafiles to "opinst".
* cgen-opc.in: Delete.
* cgen-ibld.in: New file.
* cgen-asm.in: Include @[email protected].
(insert_1,insert_normal,insert_insn_normal): Moved to cgen-ibld.in.
* cgen-dis.in: Include @[email protected].
(fill_cache,extract_1,extract_normal,extract_insn_normal): Moved to
cgen-ibld.in.
* cgen.sh: Accept new arg to handle generation of opinst file.
Generate arch-desc.[ch],arch-opinst.c,arch-ibld.c files.
Doug Evans [Wed, 10 Feb 1999 01:12:01 +0000 (01:12 +0000)]
* cgen.h (CGEN_CPU_DESC): Renamed from CGEN_OPCODE_DESC.
All uses updated. New members int_insn_p, max_insn_size,
parse_operand,insert_operand,extract_operand,print_operand,
sizeof_fields,set_fields_bitsize,get_int_operand,set_int_operand,
get_vma_operand,set_vma_operand,parse_handlers,insert_handlers,
extract_handlers,print_handlers.
(CGEN_ATTR): Change type of num_nonbools to unsigned int.
(CGEN_ATTR_BOOL_OFFSET): New macro.
(CGEN_ATTR_MASK): Subtract it to compute bit number.
(CGEN_ATTR_VALUE): Redo bool/nonbool attr calculation.
(cgen_opcode_handler): Renamed from cgen_base.
(CGEN_HW_ATTR_VALUE): Renamed from CGEN_HW_ATTR, all uses updated.
(CGEN_OPERAND_ATTR_VALUE): Renamed from CGEN_OPERAND_ATTR,
all uses updated.
(CGEN_OPERAND_INDEX): Rewrite to use table entry, not global.
(enum cgen_opinst_type): Renamed from cgen_operand_instance_type.
(CGEN_IFLD_ATTR_VALUE): Renamed from CGEN_IFLD_ATTR, all uses updated.
(CGEN_OPCODE,CGEN_IBASE): New types.
(CGEN_INSN): Rewrite.
(CGEN_{ASM,DIS}_HASH*): Delete.
(init_opcode_table,init_ibld_table): Declare.
* gdbtk-hooks.c: Remove gdbtk_ignorable_warning prototype.
It is in gdbtk.h.
(report_error): New function. Displays debugging information
if a hook function fails. All hook functions should probably
call this.
(gdbtk_warning): Call report_error() if there is a problem.
(gdbtk_register_changed): Call report_error() if there is a problem.
(gdbtk_memory_changed): Call report_error() if there is a problem.
(gdbtk_ignorable_warning): Pass along class argument. If there
is a problem, call report_error().
* gdbtk-cmds.c: Remove TclDebug prototype. It is in gdbtk.h.
(gdb_loadfile): Add class name to gdbtk_ignorable_warning call.